@enonic-types/lib-static
v2.1.1
Published
Type definition for the Enonic XP library for serving static assets
Readme
Types for Static asset library
Install
npm i --save-dev @enonic-types/lib-staticSetup
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.
