1.0.2 • Published 6 months ago

@enonic-types/lib-asset v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 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.2

6 months ago

1.0.1

11 months ago

1.0.0

1 year ago

1.0.0-B6

1 year ago

1.0.0-B5

1 year ago