Documentation
    Preparing search index...

    Type Alias MockConfigService

    MockConfigService: MockService<MockConfigState> & {
        commit(windowId: string, values: ConfigValues): ConfigValues | undefined;
    }

    The config mock service with its commit control.

    Type Declaration

    • commit: function
      • Model the shell's settings UI committing a full snapshot: validate and default it against the window's schema, persist it, and push config.values to the window when subscribed.

        Parameters

        • windowId: string

          Window whose configuration changed.

        • values: ConfigValues

          Raw snapshot to persist.

        Returns ConfigValues | undefined

        The resolved values, or undefined when the window has no schema.

    const config = createMockConfigService();
    config.commit('w1', { theme: 'light' }); // pushes config.values when w1 is subscribed