mpath icon indicating copy to clipboard operation
mpath copied to clipboard

Types haven't published to npm

Open SettingDust opened this issue 2 years ago • 3 comments

Do you want to request a feature or report a bug? Feature What is the current behavior? There isn't a type declaration file in npm package What is the expected behavior? Provide the types file in package

SettingDust avatar Dec 04 '22 08:12 SettingDust

For now I've just stubbed the types in my global.d.ts file, but having the actual types would definitely be preferred.

alex-e-leon avatar Dec 09 '22 22:12 alex-e-leon

For now I've just stubbed the types in my global.d.ts file, but having the actual types would definitely be preferred.

You can install from github

SettingDust avatar Dec 10 '22 04:12 SettingDust

Going even further, you can install from github under a @types/mpath alias, so you can still have the published version with the types from this repo:

  "devDependencies": {
    "@types/mpath": "github:mongoosejs/mpath",

forivall avatar Apr 04 '24 22:04 forivall