The built-in native types in Embeddable are:
string
const s : string = 'Hello world'
number
const n : number = -123.34
boolean
const b : boolean = true
time
const t : Time = { date: new Date() }
const t : Time = { date: new Date(1980, 3, 28) }
const t : Time = { relativeTimeString: 'today' }
const t : Time = { relativeTimeString: 'Yesterday' }
const t : Time = { relativeTimeString: 'last week' }
const t : Time = { relativeTimeString: '6 months ago' }
timeRange
const tr : TimeRange = { from: new Date(1995, 1, 16), to: new Date() }
const tr : TimeRange = { relativeTimeString: 'this week' }
const tr : TimeRange = { relativeTimeString: 'last 30 days' }
const tr : TimeRange = { relativeTimeString: 'last month' }
const tr : TimeRange = { relativeTimeString: 'this year' }
dataset
loadData
with (learn more)measure
loadData
with (learn more)dimension
loadData
with (learn more)granularity
time
dimensions by when calling loadData
(learn more)const g : Granularity = 'second'
const g : Granularity = 'minute'
const g : Granularity = 'hour'
const g : Granularity = 'day'
const g : Granularity = 'week'
const g : Granularity = 'month'
const g : Granularity = 'quarter'
const g : Granularity = 'year'
dimensionOrMeasure
loadData
with (learn more)You can also define your own types. These are called custom types. A simple example can be found here.