Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TypeScript types #477

Merged
merged 4 commits into from
Jan 10, 2019
Merged

Add TypeScript types #477

merged 4 commits into from
Jan 10, 2019

Conversation

kale-stew
Copy link

Description

This PR takes the existing type definitions from DefinitelyTyped and ships them with the library instead. This will make it easier to update these definitions as the nuka-carousel API evolves.

In addition to bringing in the types, we've set up tslint and tsc to help verify changes to the index.d.ts.

Once this PR merges, we can PR for the existing definitions to be removed from DT.

Rel #395

Type of Change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Tested with a local sample of nuka-carousel and within the demo/ app.js app.tsx.

Copy link
Member

@sarmeyer sarmeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for taking this on!

@kale-stew kale-stew merged commit 088db98 into master Jan 10, 2019
@kale-stew kale-stew deleted the feature/typescript-types branch January 10, 2019 21:40
@stunaz
Copy link

stunaz commented Jan 21, 2019

@kale-stew @sarmeyer looks like index.d.ts is not present on npm

@stunaz
Copy link

stunaz commented Jan 21, 2019

thanks @sarmeyer fixed on 4.4.7

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.

3 participants