typescript-json-schema
Version:
typescript-json-schema generates JSON Schema files from your Typescript sources
27 lines (23 loc) • 304 B
text/typescript
/**
* My string
*/
type MyString = string;
/**
* My type alias
*/
type MyAlias = MySubObject;
/**
* My sub object
*/
interface MySubObject {
propA: number;
propB: number;
}
/**
* My Object
*/
interface MyObject {
primitive: MyString;
object: MySubObject;
alias: MyAlias;
}