North Pittsburgh Meatpackers

    @verdaccio/types
    TypeScript icon, indicating that this package has built-in type declarations

    10.3.0 • Public • Published

    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;
      ...
    }
    

    Install

    npm i @verdaccio/types

    DownloadsWeekly Downloads

    1,770

    Version

    10.3.0

    License

    MIT

    Unpacked Size

    39.7 kB

    Total Files

    5

    Last publish

    Collaborators

    • sergiohgz
    • verdaccio.npm
    • jotadeveloper
    • ayusharma