From ad07231bf3a9e4d69c11878e9829d0776564db13 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 7 Jul 2020 11:37:31 +0200 Subject: [PATCH] Add generic restriction to LcdModuleSetup --- packages/sdk38/src/lcdapi/lcdclient.ts | 2 +- packages/sdk38/types/lcdapi/lcdclient.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sdk38/src/lcdapi/lcdclient.ts b/packages/sdk38/src/lcdapi/lcdclient.ts index cbe1e4ab..fb51c90d 100644 --- a/packages/sdk38/src/lcdapi/lcdclient.ts +++ b/packages/sdk38/src/lcdapi/lcdclient.ts @@ -22,7 +22,7 @@ export function normalizeLcdApiArray(backend: LcdApiArray): readonly T[] { export type LcdModule = Record any>; -type LcdModuleSetup = (base: LcdClient) => M; +type LcdModuleSetup = (base: LcdClient) => M; export interface LcdClientBaseOptions { readonly apiUrl: string; diff --git a/packages/sdk38/types/lcdapi/lcdclient.d.ts b/packages/sdk38/types/lcdapi/lcdclient.d.ts index 924fc62a..7774b320 100644 --- a/packages/sdk38/types/lcdapi/lcdclient.d.ts +++ b/packages/sdk38/types/lcdapi/lcdclient.d.ts @@ -12,7 +12,7 @@ import { export declare type LcdApiArray = readonly T[] | null; export declare function normalizeLcdApiArray(backend: LcdApiArray): readonly T[]; export declare type LcdModule = Record any>; -declare type LcdModuleSetup = (base: LcdClient) => M; +declare type LcdModuleSetup = (base: LcdClient) => M; export interface LcdClientBaseOptions { readonly apiUrl: string; readonly broadcastMode?: BroadcastMode;