Skip to content

Commit 3bbc3cd

Browse files
committed
Add constructor to test Model class
so TypeScript will shut up.
1 parent 1786b57 commit 3bbc3cd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/service-module/model-instance-defaults.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,16 @@ function makeContext() {
3737
})
3838

3939
class Todo extends BaseModel {
40-
public static modelName = 'Todo'
41-
public description: string
42-
4340
public constructor(data = {}, options?) {
4441
super(data, options)
4542
}
43+
public static modelName = 'Todo'
44+
public description: string
4645
}
4746
class Person extends BaseModel {
47+
public constructor(data = {}, options?) {
48+
super(data, options)
49+
}
4850
public static modelName = 'Person'
4951
public static test: boolean = true
5052
}

0 commit comments

Comments
 (0)