Refactor the type of os from String to an closest enum kind of thing
Summary: This diff updates the type of os in Store from string to a custom enum kind of type. Reviewed By: passy Differential Revision: D13622598 fbshipit-source-id: c57a1f2eedbe9e88d43c681c2fa6ca72b93e8808
This commit is contained in:
committed by
Facebook Github Bot
parent
d868cd6405
commit
3b9253680f
@@ -10,7 +10,7 @@ import type BaseDevice from './devices/BaseDevice.js';
|
||||
import type {App} from './App.js';
|
||||
import type Logger from './fb-stubs/Logger.js';
|
||||
import type {Store} from './reducers/index.js';
|
||||
|
||||
import type {OS} from './devices/BaseDevice.js';
|
||||
import {FlipperDevicePlugin} from './plugin.js';
|
||||
import {setPluginState} from './reducers/pluginStates.js';
|
||||
import {ReactiveSocket, PartialResponder} from 'rsocket-core';
|
||||
@@ -22,7 +22,7 @@ type Plugins = Array<string>;
|
||||
|
||||
export type ClientQuery = {|
|
||||
app: string,
|
||||
os: string,
|
||||
os: OS,
|
||||
device: string,
|
||||
device_id: string,
|
||||
|};
|
||||
|
||||
Reference in New Issue
Block a user