readRegistryKey | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function readRegistryKey

    • read a registry key acceptInvalidKeyNames - set to accept invalid key names that HareScript used to accept. this option may be removed in the future so consider migrating all keys requiring this flag!

      Type Parameters

      • Key extends keyof RegistryKeys

      Parameters

      • key: Key
      • OptionaldefaultValue: RegistryKeys[Key]
      • Optionalopts: { acceptInvalidKeyNames: boolean }

      Returns Promise<RegistryKeys[Key]>

    • read a registry key acceptInvalidKeyNames - set to accept invalid key names that HareScript used to accept. this option may be removed in the future so consider migrating all keys requiring this flag!

      Type Parameters

      • ExpectedType = never

      Parameters

      • key: string & KeyErrorForValueType<ExpectedType>
      • OptionaldefaultValue: ExpectedType
      • Optionalopts: { acceptInvalidKeyNames: boolean }

      Returns Promise<ExpectedType>