From 50fd24581cd5297886bc398f881079ca705fe232 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 25 Mar 2022 09:13:26 -0600 Subject: [PATCH] Fix incorrect typing on SdkConfig defaults (#8147) It's not a partial anymore - it's a full-fledged object with proper types. Without this change, `SdkConfig.put(DEFAULTS)` is broken. --- src/SdkConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SdkConfig.ts b/src/SdkConfig.ts index 66188e240f..93b89a92ea 100644 --- a/src/SdkConfig.ts +++ b/src/SdkConfig.ts @@ -22,7 +22,7 @@ import { IConfigOptions, ISsoRedirectOptions } from "./IConfigOptions"; import { KeysWithObjectShape } from "./@types/common"; // see element-web config.md for docs, or the IConfigOptions interface for dev docs -export const DEFAULTS: Partial = { +export const DEFAULTS: IConfigOptions = { brand: "Element", integrations_ui_url: "https://scalar.vector.im/", integrations_rest_url: "https://scalar.vector.im/api",