import { processApi } from '@seleniumhq/side-api' import { ApiHoist as Api } from '@seleniumhq/side-api' type FunctionKeys> = { [K in keyof T as T[K]['mutator'] extends Function ? K : never]: T[K]['mutator']; }; /** * This Converts the chrome API type to something usable * from the front end */ export type BrowserApiMutators = { [Namespace in keyof Api]: FunctionKeys } export default processApi( (_, handler) => handler.mutator )