diff --git a/js/tree-v1/tree-store.ts b/js/tree-v1/tree-store.ts index b7584f1075..3b0a7dd654 100644 --- a/js/tree-v1/tree-store.ts +++ b/js/tree-v1/tree-store.ts @@ -155,7 +155,7 @@ export class TreeStore { public setConfig(options: TypeTreeStoreOptions) { const { config } = this; let hasChanged = false; - (Object.keys(options) as (keyof TypeTreeStoreOptions)[]).forEach((key) => { + (Object.keys(options)).forEach((key: keyof TypeTreeStoreOptions) => { const val = options[key]; if (val !== config[key]) { hasChanged = true; diff --git a/js/tree/tree-store.ts b/js/tree/tree-store.ts index 162a306b1a..c6a955cb95 100644 --- a/js/tree/tree-store.ts +++ b/js/tree/tree-store.ts @@ -159,7 +159,7 @@ export class TreeStore { public setConfig(options: TypeTreeStoreOptions) { const { config } = this; let hasChanged = false; - (Object.keys(options) as (keyof TypeTreeStoreOptions)[]).forEach((key) => { + (Object.keys(options)).forEach((key: keyof TypeTreeStoreOptions) => { const val = options[key]; if (val !== config[key]) { hasChanged = true;