Types (core)
- Print
Types (core)
- Print
Article summary
Did you find this summary helpful?
Thank you for your feedback
Types Schema 0.5.3
Schemas
SemanticVersion
type SemanticVersion = {
major: bigint
minor: bigint
patch: bigint
readable: string
}
Examples
AudioProfile
type AudioProfile = 'stereo' | 'dolbyDigital5.1' | 'dolbyDigital7.1' | 'dolbyDigital5.1+' | 'dolbyDigital7.1+' | 'dolbyAtmos'
Examples
BooleanMap
type BooleanMap = {
}
Examples
FlatMap
type FlatMap = {
}
Examples
LocalizedString
type LocalizedString = string | object
Examples
"A simple string, with no language code"
{
"en": "This is english",
"es": "esto es espaƱol"
}
Details
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.
ListenResponse
type ListenResponse = {
event: string
listening: boolean
}
Examples
Was this article helpful?