Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split Typescript definitions into it's own package #23

Open
ghost opened this issue Jan 23, 2021 · 0 comments
Open

Split Typescript definitions into it's own package #23

ghost opened this issue Jan 23, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 23, 2021

Hi!

In certain case scenarios, the environment will not load the typescript definition files (*.d.ts) from "l2js-client/dist" and subfolders.

As a temporal solution, the following can be added into the "tsconfig.json" of your project:
"paths": {"*": ["./node_modules/l2js-client/"]}

As a global solution, the typescript definition files should be into it's own "@types/" npm package.
@types/l2js-client

So a normal installation would be:

npm install l2js-client
npm install --save-dev @types/l2js-client

Please take it into consideration :)

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants