summaryrefslogtreecommitdiff
path: root/app/models/character/character.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/character/character.ts')
-rw-r--r--app/models/character/character.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/models/character/character.ts b/app/models/character/character.ts
index ca3cbc7..a9a2e46 100644
--- a/app/models/character/character.ts
+++ b/app/models/character/character.ts
@@ -1,9 +1,9 @@
-import { Instance, SnapshotOut, types } from "mobx-state-tree"
+import { Instance, SnapshotOut, types } from 'mobx-state-tree'
/**
* Rick and Morty character model.
*/
-export const CharacterModel = types.model("Character").props({
+export const CharacterModel = types.model('Character').props({
id: types.identifierNumber,
name: types.maybe(types.string),
status: types.maybe(types.string),
@@ -14,4 +14,5 @@ type CharacterType = Instance<typeof CharacterModel>
export interface Character extends CharacterType {}
type CharacterSnapshotType = SnapshotOut<typeof CharacterModel>
export interface CharacterSnapshot extends CharacterSnapshotType {}
-export const createCharacterDefaultModel = () => types.optional(CharacterModel, {})
+export const createCharacterDefaultModel = () =>
+ types.optional(CharacterModel, {})