npetrovski / l2js-client

JavaScript client for Lineage 2
MIT License
105 stars 34 forks source link

Split Typescript definitions into it's own package #23

Open ghost opened 3 years ago

ghost commented 3 years ago

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!