settingsServiceObjectToProxy: Readonly<{
    dataProviderName: "platform.settingsServiceDataProvider";
    registerValidator: (<SettingName>(key: SettingName, validator: SettingValidator<SettingName>) => Promise<UnsubscriberAsync>);
}>

Type declaration

  • dataProviderName: "platform.settingsServiceDataProvider"

    This name is used to register the settings service data provider on the papi. You can use this name to find the data provider when accessing it using the useData hook

  • registerValidator: (<SettingName>(key: SettingName, validator: SettingValidator<SettingName>) => Promise<UnsubscriberAsync>)

    Registers a function that validates whether a new setting value is allowed to be set.

      • <SettingName>(key, validator): Promise<UnsubscriberAsync>
      • Type Parameters

        Parameters

        Returns Promise<UnsubscriberAsync>

        Unsubscriber that should be called whenever the providing extension is deactivated