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
// Required for $FeathersVuex plugin to work after production transpile.
20
20
static modelName ='User'
21
21
// Define default properties here
@@ -61,10 +61,10 @@ By default, Model classes are `string` indexable with value of type `any`. This
61
61
62
62
```ts
63
63
// Just like before, we define our class as an extension of BaseModel
64
-
exportclassUserextendsBaseModel { /* ... */ }
64
+
classUserextendsBaseModel { /* ... */ }
65
65
66
66
// Augment the User Model interface
67
-
exportinterfaceUser {
67
+
interfaceUser {
68
68
email:string
69
69
password:string
70
70
}
@@ -76,7 +76,7 @@ If you already have a User interface defined under a different name, just define
76
76
77
77
```ts
78
78
// if our User interface already exists as UserRecord
79
-
exportinterfaceUserextendsUserRecord {}
79
+
interfaceUserextendsUserRecord {}
80
80
```
81
81
82
82
To further enhance typing, you can augment FeathersVuex types to aid development in other parts of your app. It's important to note the differences in the following example if you do or do not setup a `serverAlias`.
@@ -85,8 +85,8 @@ To further enhance typing, you can augment FeathersVuex types to aid development
0 commit comments