Paciolan / remote-component

Dynamically load a React Component from a URL
MIT License
591 stars 49 forks source link

how can i use it with typescript #6

Closed ckken closed 3 years ago

joelnet commented 4 years ago

I haven't tried this in a TypeScript project, but it's my understanding that the process should be the same in either JS or TS. Were you getting some specific errors in your library?

ckken commented 4 years ago

i can use it with type check

joelnet commented 4 years ago

Currently the library is written in JavaScript and not TypeScript, so it doesn't have the type support that is in TypeScript. I have been looking into adding type support for the library but it's lower priority right now. But we may possibly add this in a future version.

joelnet commented 3 years ago

The project has recently been converted to TypeScript. This should mean the Types will be imported automatically when in a TypeScript project.

This change was added at https://github.com/Paciolan/remote-component/commit/c9442c45e435d5af3479c3d42aa363845ea0dd78