Skip to content

Add typescript declaration file #80

Description

@timgreen
❯ npm run tsc
> tsc --noEmit

<source> - error TS7016: Could not find a declaration file for module 'react-countdown-clock'. '<project>/node_modules/react-countdown-clock/build/react-countdown-clock.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/react-countdown-clock` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-countdown-clock';`

2 import ReactCountdownClock from 'react-countdown-clock';
                                  ~~~~~~~~~~~~~~~~~~~~~~~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions