mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +00:00
tweak(phone/gen-state): Added type-safety to gen phone global state
This commit is contained in:
1 parent
7b1d30f265
commit
d15273b7b1
1 file changed
+6
-5
@@ -1,19 +1,20 @@
|
||||
import { atom } from 'recoil';
|
||||
import { IServerConfig } from '../../../../../typings/config';
|
||||
|
||||
export const phoneState = {
|
||||
visibility: atom({
|
||||
visibility: atom<boolean>({
|
||||
key: 'phoneVisibility',
|
||||
default: false,
|
||||
}),
|
||||
phoneConfig: atom({
|
||||
phoneConfig: atom<IServerConfig>({
|
||||
key: 'phoneConfig',
|
||||
default: undefined,
|
||||
default: null,
|
||||
}),
|
||||
phoneReady: atom({
|
||||
phoneReady: atom<boolean>({
|
||||
key: 'phoneReady',
|
||||
default: false,
|
||||
}),
|
||||
phoneTime: atom({
|
||||
phoneTime: atom<string>({
|
||||
key: 'phoneTime',
|
||||
default: null,
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user