ts2json-schema
Version:
Build JSON schemas for your typescript types matching a pattern.
19 lines • 332 B
TypeScript
/**
* @additionalProperties true
*/
export interface BookInterface {
name: string;
author: string;
publisher: string;
keywords?: string[];
/**
* @pattern ^[0-9a-fA-F]+$
*/
barCode: string;
/**
* @minimum 0
* @default 0
*/
price: number;
}
//# sourceMappingURL=Book.d.ts.map