Types (core)

    Types (core)


    Article summary


    title: Types

    version: 0.15.0
    layout: default
    sdk: core

    # Types

    Version Types 0.0.0-unknown.0

    Table of Contents

    Overview

    undefined

    Types

    SemanticVersion

    type SemanticVersion = {
      major: number
      minor: number
      patch: number
      readable: string
    }
    

    BooleanMap

    type BooleanMap = {
      [property: string]: boolean
    }
    

    AudioProfile

    enum AudioProfile {
    	STEREO = 'stereo',
    	DOLBY_DIGITAL_5_1 = 'dolbyDigital5.1',
    	DOLBY_DIGITAL_7_1 = 'dolbyDigital7.1',
    	DOLBY_DIGITAL_5_1_PLUS = 'dolbyDigital5.1+',
    	DOLBY_DIGITAL_7_1_PLUS = 'dolbyDigital7.1+',
    	DOLBY_ATMOS = 'dolbyAtmos'
    }
    
    

    LocalizedString

    Localized string supports either a simple string or a Map<string, string> of language codes to strings. When using a simple string, the current preferred langauge from Localization.langauge() is assumed.

    type LocalizedString = string | object
    

    FlatMap

    type FlatMap = {
      [property: string]: string | number | boolean
    }
    

    Timeout

    Defines the timeout in seconds. If the threshold for timeout is passed for any operation without a result it will throw an error.

    type Timeout = number
    


    Was this article helpful?