Skip to content

Conversation

@morishin
Copy link
Contributor

@morishin morishin commented Jun 4, 2018

We should specify the type definition file (index.d.ts) path in package.json.

TypeScript document says as follows.

Also note that if your main declaration file is named index.d.ts and lives at the root of the package (next to index.js) you do not need to mark the "types" property, though it is advisable to do so.

https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html

@DylanVann DylanVann merged commit e583816 into DylanVann:master Jun 5, 2018
@DylanVann
Copy link
Owner

Awesome, thanks!

@morishin morishin deleted the specify-type-definition-file-path branch June 6, 2018 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants