Pebble App Framework: Phone API
    Preparing search index...

    Function collectDefaults

    • Walks the Clay config items and builds a map from each item's message key to its declared default value, so the same defaults apply whether or not the user has opened the settings page yet.

      Parameters

      • items: ClayConfigItem[]

        The Clay config items to walk, including any nested items.

      Returns Record<string, any>

      A map from message key to default value.