1.1.0-beta.3 • Published 6 years ago

swagen-typescript-language v1.1.0-beta.3

Weekly downloads
5
License
Apache-2.0
Repository
github
Last release
6 years ago

swagen-typescript-language

swagen-typescript-language are Typescript language helpers for Swagen generators that generate Typescript code.

Installation

In your swagen generator package:

npm install --save swagen-typescript-language

Usage

swagen-typescript-language provides several helper functions. You can view the API reference for more details.

const ts = require('swagen-typescript-language');

const headers = ts.buildHeader(profile, definition);
const methodSignature = ts.getMethodSignature('myOperation', operation, {
    voidType: 'any',
    returnTypeTransformer: returnType => `Observable<${returnType}>`
});
1.1.0-beta.3

6 years ago

1.1.0-beta.2

6 years ago

1.1.0-beta.1

6 years ago

1.0.0

8 years ago

1.0.0-beta.1

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago