zk-types
TypeScript icon, indicating that this package has built-in type declarations

10.0.2 • Public • Published

TypeScript Declarations for the ZK Framework

Demo

npm i -D typescript zk-types
npx tsc --init

Modify tsconfig.json to have:

{
    "compilerOptions": {
        "types": ["zk-types"]
    }
}

Create a TS file with whatever name (e.g., demo.ts) and start typing:

const oldPanel = zk.augment(zul.wnd.Panel.prototype, {
    onClose(): void {
        alert('Modified zul.wnd.Panel.prototype.onClose');
        return oldPanel.onClose();
    }
})

Compile with:

npx tsc

Readme

Keywords

none

Package Sidebar

Install

npm i zk-types

Weekly Downloads

2

Version

10.0.2

License

LGPL-2.0-or-later

Unpacked Size

847 kB

Total Files

478

Last publish

Collaborators

  • zkpotix