aboutsummaryrefslogtreecommitdiff
path: root/extension/src/features/framework
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-01-04 11:13:31 -0500
committerLibravatar vnugent <public@vaughnnugent.com>2024-01-04 11:13:31 -0500
commite87c4b69036e32b4fcf3df89e8158fb52df6a4e0 (patch)
tree83ce96172100abb0949f60e3c733daf738cbcf2d /extension/src/features/framework
parent8dec218a1aa259f83b8178265a7d0d0f08817cac (diff)
package updates & partial account page added
Diffstat (limited to 'extension/src/features/framework')
-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> {
/**