Bumped some deps to fix parsing of template literal types
Summary:
I want to use TypesScipt type literals in a next diff (e.g.
```
type Percentage = `${number}%`
```
But to be able to use that typescript, prettier and eslint needed bumps :)
Reviewed By: nikoant
Differential Revision: D26321133
fbshipit-source-id: a4891246ef8c654f324c6daf303c5c4b2f54496e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3b6be6b7b6
commit
bf7599e574
@@ -209,9 +209,9 @@ test('PluginContainer can render Sandy plugins', async () => {
|
||||
`);
|
||||
|
||||
// make sure the plugin gets connected
|
||||
const pluginInstance: ReturnType<typeof plugin> = client.sandyPluginStates.get(
|
||||
definition.id,
|
||||
)!.instanceApi;
|
||||
const pluginInstance: ReturnType<
|
||||
typeof plugin
|
||||
> = client.sandyPluginStates.get(definition.id)!.instanceApi;
|
||||
expect(pluginInstance.connectedStub).toBeCalledTimes(1);
|
||||
expect(pluginInstance.disconnectedStub).toBeCalledTimes(0);
|
||||
expect(pluginInstance.activatedStub).toBeCalledTimes(1);
|
||||
@@ -357,9 +357,9 @@ test('PluginContainer triggers correct lifecycles for background plugin', async
|
||||
expect(client.rawSend).toBeCalledWith('init', {plugin: 'TestPlugin'});
|
||||
(client.rawSend as jest.Mock).mockClear();
|
||||
// make sure the plugin gets connected
|
||||
const pluginInstance: ReturnType<typeof plugin> = client.sandyPluginStates.get(
|
||||
definition.id,
|
||||
)!.instanceApi;
|
||||
const pluginInstance: ReturnType<
|
||||
typeof plugin
|
||||
> = client.sandyPluginStates.get(definition.id)!.instanceApi;
|
||||
expect(pluginInstance.connectedStub).toBeCalledTimes(1);
|
||||
expect(pluginInstance.disconnectedStub).toBeCalledTimes(0);
|
||||
expect(pluginInstance.activatedStub).toBeCalledTimes(1);
|
||||
@@ -438,9 +438,9 @@ test('PluginContainer triggers correct lifecycles for background plugin', async
|
||||
expect(pluginInstance.activatedStub).toBeCalledTimes(2);
|
||||
expect(pluginInstance.deactivatedStub).toBeCalledTimes(2);
|
||||
|
||||
const newPluginInstance: ReturnType<typeof plugin> = client.sandyPluginStates.get(
|
||||
'TestPlugin',
|
||||
)!.instanceApi;
|
||||
const newPluginInstance: ReturnType<
|
||||
typeof plugin
|
||||
> = client.sandyPluginStates.get('TestPlugin')!.instanceApi;
|
||||
expect(newPluginInstance.connectedStub).toBeCalledTimes(1);
|
||||
expect(newPluginInstance.disconnectedStub).toBeCalledTimes(0);
|
||||
expect(newPluginInstance.activatedStub).toBeCalledTimes(0);
|
||||
@@ -699,9 +699,9 @@ test('PluginContainer can render Sandy device plugins', async () => {
|
||||
`);
|
||||
|
||||
// make sure the plugin gets connected
|
||||
const pluginInstance: ReturnType<typeof devicePlugin> = device.sandyPluginStates.get(
|
||||
definition.id,
|
||||
)!.instanceApi;
|
||||
const pluginInstance: ReturnType<
|
||||
typeof devicePlugin
|
||||
> = device.sandyPluginStates.get(definition.id)!.instanceApi;
|
||||
expect(pluginInstance.activatedStub).toBeCalledTimes(1);
|
||||
expect(pluginInstance.deactivatedStub).toBeCalledTimes(0);
|
||||
|
||||
@@ -949,9 +949,9 @@ test('Sandy plugins support isPluginSupported + selectPlugin', async () => {
|
||||
`);
|
||||
expect(renders).toBe(1);
|
||||
|
||||
const pluginInstance: ReturnType<typeof plugin> = client.sandyPluginStates.get(
|
||||
definition.id,
|
||||
)!.instanceApi;
|
||||
const pluginInstance: ReturnType<
|
||||
typeof plugin
|
||||
> = client.sandyPluginStates.get(definition.id)!.instanceApi;
|
||||
expect(pluginInstance.isPluginAvailable(definition.id)).toBeTruthy();
|
||||
expect(pluginInstance.isPluginAvailable('nonsense')).toBeFalsy();
|
||||
expect(pluginInstance.isPluginAvailable(definition2.id)).toBeFalsy(); // not enabled yet
|
||||
|
||||
@@ -32,9 +32,10 @@ export type VersionCheckResult =
|
||||
};
|
||||
|
||||
export default function UpdateIndicator() {
|
||||
const [versionCheckResult, setVersionCheckResult] = useState<
|
||||
VersionCheckResult
|
||||
>({kind: 'up-to-date'});
|
||||
const [
|
||||
versionCheckResult,
|
||||
setVersionCheckResult,
|
||||
] = useState<VersionCheckResult>({kind: 'up-to-date'});
|
||||
const launcherMsg = useStore((state) => state.application.launcherMsg);
|
||||
|
||||
// Effect to show notification if details change
|
||||
|
||||
@@ -63,9 +63,10 @@ export function SandyApp() {
|
||||
* The logic here is to sync both, but without modifying the navigation related reducers to not break classic Flipper.
|
||||
* It is possible to simplify this in the future.
|
||||
*/
|
||||
const [toplevelSelection, setStoredToplevelSelection] = useState<
|
||||
ToplevelNavItem
|
||||
>('appinspect');
|
||||
const [
|
||||
toplevelSelection,
|
||||
setStoredToplevelSelection,
|
||||
] = useState<ToplevelNavItem>('appinspect');
|
||||
|
||||
// Handle toplevel nav clicks from LeftRail
|
||||
const setToplevelSelection = useCallback(
|
||||
|
||||
@@ -115,9 +115,9 @@ export default class StackTrace extends Component<{
|
||||
return null;
|
||||
}
|
||||
|
||||
const columns = (Object.keys(children[0]) as Array<keyof Child>).reduce<
|
||||
TableColumns
|
||||
>((acc, cv) => {
|
||||
const columns = (Object.keys(children[0]) as Array<
|
||||
keyof Child
|
||||
>).reduce<TableColumns>((acc, cv) => {
|
||||
if (cv !== 'isBold') {
|
||||
acc[cv] = {
|
||||
value: cv,
|
||||
|
||||
@@ -80,9 +80,7 @@ export type ElementsInspectorProps = {
|
||||
decorateRow?: DecorateRow;
|
||||
};
|
||||
|
||||
export default class ElementsInspector extends Component<
|
||||
ElementsInspectorProps
|
||||
> {
|
||||
export default class ElementsInspector extends Component<ElementsInspectorProps> {
|
||||
static defaultProps = {
|
||||
alternateRowColor: true,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user