Using flow.js in Angular 2 Typescript

I want to integrate flowjs or ng stream into my Angular 2 application.

I installed ticks flowjs using

npm install --save-dev @types/flowjs

from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/flowjs

But when I import it into my component import { Flow } from 'flowjs';, the console threw an error

/node_modules/@types/flowjs/index.d.ts' is not a module.
+4
source share
2 answers

, , index.d.ts. , , , . , , , , "///ref". Typescript (@types), , , : fooobar.com/questions/97922/...

+1

import * "@flowjs/flow.js"

+2

Source: https://habr.com/ru/post/1659601/


All Articles