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.
This commit is contained in:
+1
-1
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user