TypeScript Genie
- Code
- Output
m.interface("Person")
.export()
.prop("firstname", "string")
.prop("age", "number", { optional: true });
export interface Person {
firstname: string;
age?: number;
}
m.interface("Person")
.export()
.prop("firstname", "string")
.prop("age", "number", { optional: true });
export interface Person {
firstname: string;
age?: number;
}