wings-ts-util
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i wings-ts-util

Weekly Downloads

59

Version

0.0.9

License

MIT

Unpacked Size

15.8 kB

Total Files

12

Last publish

Collaborators

  • binhonglee