diff --git a/desktop/flipper-plugin/src/plugin/DevicePlugin.tsx b/desktop/flipper-plugin/src/plugin/DevicePlugin.tsx index 603259f64..6aa938135 100644 --- a/desktop/flipper-plugin/src/plugin/DevicePlugin.tsx +++ b/desktop/flipper-plugin/src/plugin/DevicePlugin.tsx @@ -15,12 +15,12 @@ export type DeviceLogListener = (entry: DeviceLogEntry) => void; export type DeviceLogEntry = { readonly date: Date; + readonly type: LogLevel; + readonly message: string; readonly pid: number; readonly tid: number; readonly app?: string; - readonly type: LogLevel; readonly tag: string; - readonly message: string; }; export type LogLevel = diff --git a/desktop/flipper-plugin/src/plugin/Plugin.tsx b/desktop/flipper-plugin/src/plugin/Plugin.tsx index 99fad1260..b7c38e640 100644 --- a/desktop/flipper-plugin/src/plugin/Plugin.tsx +++ b/desktop/flipper-plugin/src/plugin/Plugin.tsx @@ -41,14 +41,6 @@ export interface PluginClient< */ onDisconnect(cb: () => void): void; - /** - * Send a message to the connected client - */ - send( - method: Method, - params: Parameters[0], - ): ReturnType; - /** * Subscribe to a specific event arriving from the device. * @@ -59,6 +51,14 @@ export interface PluginClient< event: Event, callback: (params: Events[Event]) => void, ): void; + + /** + * Send a message to the connected client + */ + send( + method: Method, + params: Parameters[0], + ): ReturnType; } /** diff --git a/website/sidebars.js b/website/sidebars.js index d4fe27591..91c46af4f 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -90,6 +90,7 @@ module.exports = { 'extending/fb/desktop-plugin-releases', // TODO: Remove once sandy is public T69061061 'extending/fb/sandy/sandy-plugins', + 'extending/fb/sandy/flipper-plugin', ]), ], 'Other Platforms': [