mongo-ts-struct
Version:
Mongoose wrapper for Typescript supports
26 lines (21 loc) • 525 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/*
// Usage:
class Schema {
static type = 'Schema';
name: string;
id: number;
save() : boolean {
return true;
}
static findAll(): any[] {
return [];
}
}
type SchemaProps = ExtractProperty<Schema>
type SchemaStaticProps = ExtractProperty<typeof Schema>
type SchemaInstanceMethods = ExtractFunction<Schema>
type SchemaStaticMethods = ExtractFunction<typeof Schema>
*/
//# sourceMappingURL=utils.js.map