zk-types
v10.1.0
Published
## Demo ```sh npm i -D typescript zk-types npx tsc --init ``` Modify `tsconfig.json` to have: ```json { "compilerOptions": { "types": ["zk-types"] } } ``` Create a TS file with whatever name (e.g., `demo.ts`) and start typing: ```ts const
Downloads
556
Readme
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