Package Exports
- kiss-verdaccio-types
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kiss-verdaccio-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Typescript types for Verdaccio
Typescript definitions for verdaccio plugins and internal code
Typescript
For usage with the library, the tsconfig.json should looks like this.
//tsconfig.json
{
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"declaration": true,
"noImplicitAny": false,
"strict": true,
"outDir": "lib",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"typeRoots": [
"./node_modules/@verdaccio/types/lib/verdaccio",
"./node_modules/@types"
]
},
"include": [
"src/*.ts",
"types/*.d.ts"
]
}Imports
import type {ILocalData, LocalStorage, Logger, Config} from '@verdaccio/types';
class LocalData implements ILocalData {
path: string;
logger: Logger;
data: LocalStorage;
config: Config;
locked: boolean;
...
}