Skip to content

Latest commit

 

History

History

types

senc core types

NPM LICENSE latest release

senc-types contains the global type definitions for senc scripts.

Usage

npm add --save-dev @fensak-io/senc-types

In your tsconfig.json, you must either add @fensak-io to the typeRoots setting, or @fensak-io/senc-types to the types option so that the global declarations are included in your package.

with typeRoots

{
  // ...
  "compilerOptions: {
    // ...
    "typeRoots: [
      "./node_modules/@types",
      "./node_modules/@fensak-io"
    ]
    // ...
  }
  // ...
}

with types

{
  // ...
  "compilerOptions: {
    // ...
    "types: ["@fensak-io/senc-types"]
    // ...
  }
  // ...
}