@@ -48,31 +48,31 @@ function makeContext() {
48
48
super ( data , options )
49
49
}
50
50
public static modelName = 'Person'
51
- public static test : boolean = true
51
+ public static test = true
52
52
}
53
53
class Item extends BaseModel {
54
54
public static modelName = 'Item'
55
- public static test : boolean = true
55
+ public static test = true
56
56
}
57
57
class Task extends BaseModel {
58
58
public static modelName = 'Task'
59
- public static test : boolean = true
59
+ public static test = true
60
60
}
61
61
class Car extends BaseModel {
62
62
public static modelName = 'Car'
63
- public static test : boolean = true
63
+ public static test = true
64
64
}
65
65
class Group extends BaseModel {
66
66
public static modelName = 'Group'
67
- public static test : boolean = true
67
+ public static test = true
68
68
}
69
69
class Test extends BaseModel {
70
70
public static modelName = 'Test'
71
- public static test : boolean = true
71
+ public static test = true
72
72
}
73
73
class Thing extends BaseModel {
74
74
public static modelName = 'Thing'
75
- public static test : boolean = true
75
+ public static test = true
76
76
}
77
77
78
78
const todosPlugin = makeServicePlugin ( {
@@ -124,7 +124,7 @@ describe('Models - Default Values', function() {
124
124
// monkey patched with the store.
125
125
class NakedTodo extends BaseModel {
126
126
public static modelName = 'NakedTodo'
127
- public static test : boolean = true
127
+ public static test = true
128
128
}
129
129
const todo = new NakedTodo ( )
130
130
@@ -187,9 +187,9 @@ describe('Models - Default Values', function() {
187
187
188
188
class Car extends BaseModel {
189
189
public id ?
190
- public year : number = 1905
191
- public make : string = 'Tesla'
192
- public model : string = 'Roadster'
190
+ public year = 1905
191
+ public make = 'Tesla'
192
+ public model = 'Roadster'
193
193
public get combined ( ) : string {
194
194
return `${ this . year } ${ this . make } ${ this . model } `
195
195
}
@@ -223,9 +223,9 @@ describe('Models - Default Values', function() {
223
223
224
224
class Car extends BaseModel {
225
225
public id ?
226
- public year : number = 1905
227
- public make : string = 'Tesla'
228
- public model : string = 'Roadster'
226
+ public year = 1905
227
+ public make = 'Tesla'
228
+ public model = 'Roadster'
229
229
230
230
public constructor ( data ?, options ?) {
231
231
super ( data , options )
@@ -247,7 +247,7 @@ describe('Models - Default Values', function() {
247
247
248
248
class Person extends BaseModel {
249
249
public id ?
250
- public firstName : string = 'Harry'
250
+ public firstName = 'Harry'
251
251
public location : Location = {
252
252
coordinates : [ 0 , 0 ]
253
253
}
0 commit comments