aboutsummaryrefslogtreecommitdiff
path: root/extension/src/features/framework/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'extension/src/features/framework/index.ts')
-rw-r--r--extension/src/features/framework/index.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/extension/src/features/framework/index.ts b/extension/src/features/framework/index.ts
index 44ae031..2d9cad5 100644
--- a/extension/src/features/framework/index.ts
+++ b/extension/src/features/framework/index.ts
@@ -34,7 +34,11 @@ export type FeatureApi = {
export type SendMessageHandler = <T extends JsonObject | JsonObject[]>(action: string, data: any) => Promise<T>
export type VarArgsFunction<T> = (...args: any[]) => T
export type FeatureConstructor<TState, T extends FeatureApi> = () => IFeatureExport<TState, T>
-export type DummyApiExport<T extends FeatureApi> = Array<keyof T>
+
+export type DummyApiExport<T extends FeatureApi> = {
+ [K in keyof T]: T[K] extends Function ? K : never
+}[keyof T][]
+
export interface IFeatureExport<TState, TFeature extends FeatureApi> {
/**