2.0.0 • Published 8 months ago

@enonic-types/lib-static v2.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
8 months ago

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

2.0.0

8 months ago

2.0.0-B6

9 months ago

2.0.0-B5

9 months ago

2.0.0-B4

9 months ago

2.0.0-B3

9 months ago