Skip to content

Add TypeScript definition - #32

Merged
sindresorhus merged 10 commits into
chalk:masterfrom
Akim95:typings
Oct 4, 2019
Merged

Add TypeScript definition#32
sindresorhus merged 10 commits into
chalk:masterfrom
Akim95:typings

Conversation

@Akim95

@Akim95 Akim95 commented Oct 2, 2019

Copy link
Copy Markdown
Contributor

Feel free to contribute and keep it improving!

@sindresorhus

Copy link
Copy Markdown
Member

Thanks for creating a TypeScript definition. 🙌 Can you follow this styleguide?

Some examples:

@Akim95 Akim95 changed the title added TS typings Add TypeScript definition Oct 2, 2019
@sindresorhus

Copy link
Copy Markdown
Member

You need to wrap the options type in a namespace, see https://github.com/sindresorhus/typescript-definition-style-guide#documentation

Comment thread index.d.ts Outdated
Comment thread index.test-d.ts
@Akim95
Akim95 requested a review from sindresorhus October 4, 2019 02:00
@sindresorhus

Copy link
Copy Markdown
Member

You still need to do #32 (comment) and use tab-indentation.

@sindresorhus
sindresorhus merged commit e77ea17 into chalk:master Oct 4, 2019
@sindresorhus

Copy link
Copy Markdown
Member

Thanks :)

@Akim95

Akim95 commented Oct 4, 2019

Copy link
Copy Markdown
Contributor Author

Welcome! :D

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