-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterface.types.ts
More file actions
25 lines (19 loc) · 1016 Bytes
/
interface.types.ts
File metadata and controls
25 lines (19 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { z, Model, Document } from '../../util/mongo';
import * as schema from './interface.schema';
export type * from './interface.router';
export type * from './interface.service';
export type { RouterContext } from '../../types';
export type Interface = z.infer<typeof schema.Interface>;
export type InterfaceDocument = Interface & Document;
export type InterfaceGroup = z.infer<typeof schema.InterfaceGroup>;
export type InterfaceGroupDocument = InterfaceGroup & Document;
export type InterfaceComponent = z.infer<typeof schema.InterfaceComponent>;
export type InterfaceComponentDocument = InterfaceComponent & Document;
export type InterfaceSubmission = z.infer<typeof schema.InterfaceSubmission>;
export type InterfaceSubmissionDocument = InterfaceSubmission & Document;
export type Mappings = {
Interface: Model<InterfaceDocument>;
InterfaceGroup: Model<InterfaceGroupDocument>;
InterfaceComponent: Model<InterfaceComponentDocument>;
InterfaceSubmission: Model<InterfaceSubmissionDocument>;
};