Skip to content

Commit

Permalink
refactor(frontend): move Maybe to globals
Browse files Browse the repository at this point in the history
  • Loading branch information
mishamyrt committed Jan 10, 2024
1 parent b2232c9 commit 8081d9b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/entities/app/model/stores/version.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createEffect, createEvent, createStore, sample } from 'effector'

import { fromWailsEvent } from '$shared/lib'
import { appStarted, type Maybe } from '$shared/model'
import { appStarted } from '$shared/model'

import { openBrowser } from '../../api/browser'
import { checkUpdates, getVersion } from '../../api/version'
Expand Down
2 changes: 0 additions & 2 deletions frontend/src/shared/model/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,3 @@ export interface ModeSettings {
osMode: OSMode
individual: boolean
}

export type Maybe<T> = T | null
2 changes: 2 additions & 0 deletions frontend/src/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ declare interface RGBColor {
G: number
B: number
}

declare type Maybe<T> = T | null

0 comments on commit 8081d9b

Please sign in to comment.