diff options
author | Kirill Rogovoy <[email protected]> | 2021-07-19 20:06:08 +0300 |
---|---|---|
committer | Kirill Rogovoy <[email protected]> | 2021-07-19 20:06:08 +0300 |
commit | f0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 (patch) | |
tree | 575c0ff2cbb846252bd2e494c81c396846aab2f6 /app/models/character/character.ts | |
parent | 67ad38d0a7cd319623e9f41c0c381ed5c5f6f973 (diff) |
Apply Prettier
Diffstat (limited to 'app/models/character/character.ts')
-rw-r--r-- | app/models/character/character.ts | 7 |
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, {}) |