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.
pull/21833/head
Travis Ralston 2022-03-25 09:13:26 -06:00 committed by GitHub
parent 596c207e5b
commit 50fd24581c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ import { IConfigOptions, ISsoRedirectOptions } from "./IConfigOptions";
import { KeysWithObjectShape } from "./@types/common"; import { KeysWithObjectShape } from "./@types/common";
// see element-web config.md for docs, or the IConfigOptions interface for dev docs // see element-web config.md for docs, or the IConfigOptions interface for dev docs
export const DEFAULTS: Partial<IConfigOptions> = { export const DEFAULTS: IConfigOptions = {
brand: "Element", brand: "Element",
integrations_ui_url: "https://scalar.vector.im/", integrations_ui_url: "https://scalar.vector.im/",
integrations_rest_url: "https://scalar.vector.im/api", integrations_rest_url: "https://scalar.vector.im/api",