wings-ts-util
v0.0.9
Published
Utility class for Wings (a codegen module).
Downloads
157
Readme
wings-ts-util
Requirements
Usage
npm install -D wings-ts-util
person.struct
ts-filepath path/to/tsfile
ts-import { IWingsStruct }:wings-ts-util
ts-implement IWingsStruct
Person {
id int -1
name str
}
TypeScript
import { WingsStructUtil } from wings-ts-util;
import Person from 'path/to/tsfile/Person';
export class SomeClass {
public static someFunction(someone: Person): string {
return WingsStructUtil.stringify(someone);
}
public static personIsWingsStruct(someone: Person): bool {
return WingsStructUtil.isIWingsStruct(someone);
}
}
Development
- Install
npm i
- Build
npm build
- Clean
npm clean
- Testing
npm run cover
- Publish
npm publish