Skip to content

Commit e7b587a

Browse files
committed
fix(generate): allow datamodels.type to be undefined
fixes #106
1 parent 879925d commit e7b587a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export async function generate(
129129
}
130130

131131
// Types behaves like model
132-
for (const model of datamodel.types) {
132+
for (const model of datamodel.types || []) {
133133
await eventEmitter.emit('Model', model, eventArguments);
134134
}
135135

0 commit comments

Comments
 (0)