We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is just a note.
typhen-json-schema's d.ts that exported by typings field of the package.json:
typings
declare function minimum(min: number): PropertyDecorator; declare var exclusiveMinimum: PropertyDecorator;
User's d.ts:
import {validation} from "typhen-json-schema"; class Product { @@validation.minimum(0) @@validation.exclusiveMinimum price: number; }
Will be generated like this:
"price": { "minimum": 0, "exclusiveMinimum": true, "type": "number" }
The text was updated successfully, but these errors were encountered:
@shiwano That's good idea 👍
Sorry, something went wrong.
@horiuchi Thanks, I will do it. 😀
Memo: microsoft/TypeScript#2900
No branches or pull requests
This is just a note.
typhen-json-schema's d.ts that exported by
typings
field of the package.json:User's d.ts:
Will be generated like this:
The text was updated successfully, but these errors were encountered: