Skip to content

support typescript - could not find a declaration file for module #24

@pinkboid

Description

@pinkboid

The example from the docs

import { RevealJS, Slide, H } from 'revealjs-react';

results in alert in typescript

Could not find a declaration file for module 'revealjs-react'. '/Users/me/project/node_modules/revealjs-react/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/revealjs-react` if it exists or add a new declaration (.d.ts) file containing `declare module 'revealjs-react';`ts(7016)

looks like @types/revealjs-react has not been created yet

npm i --D @types/revealjs-react
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2frevealjs-react - Not found

This library would be more attractive to professional developers with typescript support. I could lend a hand in contributing to that end if wanted.

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