UNPKG

@verdaccio/types

Version:

verdaccio types definitions

50 lines (40 loc) 872 B
# Typescript types Typescript definitions for verdaccio plugins and internal code ## Usage 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" ] } ``` ### Example ```typescript import type {ILocalData, LocalStorage, Logger, Config} from '@verdaccio/types'; class LocalData implements ILocalData { path: string; logger: Logger; data: LocalStorage; config: Config; locked: boolean; ... } ``` #### Plugins