Skip to content

How can I import library in a typescript file? #138

Open
@SaeedZhiany

Description

@SaeedZhiany

Is it possible to explain how can I use this library in a typescript based project? It seems that @types is not defind for this project, because npm install @types/rn-fetch-blob does not work. also I don't know how can I use the types.js to import types.

currently I get this IDE error:

TS7016: Could not find a declaration file for module 'rn-fetch-blob'. 'C:/Users/SAEED/WebstormProjects/reactNative/node_modules/rn-fetch-blob/index.js' implicitly has an 'any' type.   Try npm install @types/rn-fetch-blob if it exists or add a new declaration (.d.ts) file containing declare module 'rn-fetch-blob';`

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions