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

2.1.0 • Public • Published

Types for Static asset library

Install

npm i --save-dev @enonic-types/lib-static

Setup

Add lib-static to compilerOptions.paths in the tsconfig.json file:

{
  "compilerOptions": {
    "paths": {
      "/lib/enonic/static": ["node_modules/@enonic-types/lib-static"],
    }
  }
}

Use

import {requestHandler} from '/lib/enonic/static';

All imports from /lib/enonic/static should now be typed.

Documentation

Static asset library

/@enonic-types/lib-static/

    Package Sidebar

    Install

    npm i @enonic-types/lib-static

    Weekly Downloads

    79

    Version

    2.1.0

    License

    Apache-2.0

    Unpacked Size

    11.3 kB

    Total Files

    31

    Last publish

    Collaborators

    • alansemenov
    • edloidas