diff options
author | vnugent <public@vaughnnugent.com> | 2024-01-04 11:13:31 -0500 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-01-04 11:13:31 -0500 |
commit | e87c4b69036e32b4fcf3df89e8158fb52df6a4e0 (patch) | |
tree | 83ce96172100abb0949f60e3c733daf738cbcf2d /extension/src/features/framework | |
parent | 8dec218a1aa259f83b8178265a7d0d0f08817cac (diff) |
package updates & partial account page added
Diffstat (limited to 'extension/src/features/framework')
-rw-r--r-- | extension/src/features/framework/index.ts | 6 |
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> { /** |