You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -21,12 +21,7 @@ exports[`mixin-to-schema transform (artifacts) > TypeScript type artifacts > gen
21
21
]
22
22
};
23
23
24
-
export default SimpleSchema;
25
-
26
-
export interface SimpleTrait {
27
-
title: string|null;
28
-
author: Promise<User>;
29
-
}"
24
+
export default SimpleSchema;"
30
25
`;
31
26
32
27
exports[`mixin-to-schema transform (artifacts) > TypeScript type artifacts > generates trait and extension artifacts when mixin has computed properties and methods > mixin extension code 1`] =`
@@ -57,11 +52,7 @@ exports[`mixin-to-schema transform (artifacts) > TypeScript type artifacts > gen
57
52
]
58
53
};
59
54
60
-
export default NameableSchema;
61
-
62
-
export interface NameableTrait {
63
-
name: string|null;
64
-
}"
55
+
export default NameableSchema;"
65
56
`;
66
57
67
58
exports[`mixin-to-schema transform (artifacts) > TypeScript type artifacts > generates trait artifact with merged types for basic mixins > basic trait type interface 1`] =`
@@ -94,13 +85,7 @@ exports[`mixin-to-schema transform (artifacts) > TypeScript type artifacts > gen
94
85
]
95
86
};
96
87
97
-
export default FileableSchema;
98
-
99
-
export interface FileableTrait {
100
-
files: HasMany<File>;
101
-
name: string | null;
102
-
isActive: boolean | null;
103
-
}"
88
+
export default FileableSchema;"
104
89
`;
105
90
106
91
exports[`mixin-to-schema transform (artifacts) > TypeScript type artifacts > handles custom type mappings in mixin trait type interfaces > mixin custom type mappings interface 1`] =`
@@ -126,13 +111,7 @@ exports[`mixin-to-schema transform (artifacts) > TypeScript type artifacts > han
126
111
]
127
112
};
128
113
129
-
export default TypedSchema;
130
-
131
-
export interface TypedTrait {
132
-
id: string|null;
133
-
amount: number|null;
134
-
metadata: Record<string, unknown>|null;
135
-
}"
114
+
export default TypedSchema;"
136
115
`;
137
116
138
117
exports[`mixin-to-schema transform (artifacts) > basic functionality > collects the real fileable mixin shape into trait and extension artifacts > artifact metadata 1`] =`
exports[`mixin-to-schema transform (artifacts) > basic functionality > supports alias of Mixin import and still produces a trait artifact > metadata 1`] =`
0 commit comments