Settings window: Don't show until everything is rendered

This commit is contained in:
Scott Nonnenberg 2021-09-02 08:48:53 -07:00 committed by GitHub
parent bf25a5db0b
commit 30c3b7630c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 34 additions and 22 deletions

20
ts/window.d.ts vendored
View file

@ -180,15 +180,6 @@ declare global {
WhatIsThis: WhatIsThis;
SignalModule: {
registerReactRenderer: (
f: <P extends {}>(
component: FunctionComponent<P> | ComponentClass<P>,
props?: (Attributes & P) | null
) => void
) => void;
};
registerScreenShareControllerRenderer: (
f: (
component: typeof CallingScreenSharingController,
@ -515,6 +506,17 @@ declare global {
GV2_MIGRATION_DISABLE_INVITE: boolean;
RETRY_DELAY: boolean;
// These elements are only available in the Settings window
SignalModule: {
registerReactRenderer: (
f: <P extends {}>(
component: FunctionComponent<P> | ComponentClass<P>,
props?: (Attributes & P) | null
) => void
) => void;
};
renderPreferences: () => unknown;
}
// We want to extend `Error`, so we need an interface.