Skip to content

Commit 50fd245

Browse files
authored
Fix incorrect typing on SdkConfig defaults (matrix-org#8147)
It's not a partial anymore - it's a full-fledged object with proper types. Without this change, `SdkConfig.put(DEFAULTS)` is broken.
1 parent 596c207 commit 50fd245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SdkConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { IConfigOptions, ISsoRedirectOptions } from "./IConfigOptions";
2222
import { KeysWithObjectShape } from "./@types/common";
2323

2424
// see element-web config.md for docs, or the IConfigOptions interface for dev docs
25-
export const DEFAULTS: Partial<IConfigOptions> = {
25+
export const DEFAULTS: IConfigOptions = {
2626
brand: "Element",
2727
integrations_ui_url: "https://scalar.vector.im/",
2828
integrations_rest_url: "https://scalar.vector.im/api",

0 commit comments

Comments
 (0)