1.0.0 • Published 9 months ago

@enonic-types/lib-asset v1.0.0

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

Types for Asset library

Install

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

Setup

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

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

Use

import {assetUrl} from '/lib/enonic/asset';

assetUrl should now be typed.

1.0.0

9 months ago

1.0.0-B6

9 months ago

1.0.0-B5

9 months ago