Interface: NumericDurationSchema¶
Defined in: schema.ts:392
A schema representing a return value or object property that is provided as a number, which Coda should interpret as a duration. The given number should be an amount of days (fractions allowed).
Extends¶
BaseNumberSchema<Duration>
Properties¶
codaType¶
codaType:
Duration
Defined in: schema.ts:394
Instructs Coda to render this value as a duration.
Overrides¶
BaseNumberSchema.codaType
description?¶
optionaldescription:string
Defined in: schema.ts:285
A explanation of this object schema property shown to the user in the UI.
If your pack has an object schema with many properties, it may be useful to explain the purpose or contents of any property that is not self-evident.
Inherited from¶
BaseNumberSchema.description
maxUnit?¶
optionalmaxUnit:DurationUnit
Defined in: schema.ts:404
The unit to use for rounding the duration when rendering. For example, if using DurationUnit.Days,
and a value of 273600 is provided (3 days 4 hours) is provided, it will be rendered as "3 days".
precision?¶
optionalprecision:number
Defined in: schema.ts:399
A refinement of DurationSchema.maxUnit to use for rounding the duration when rendering.
Currently only 1 is supported, which is the same as omitting a value.
type¶
type:
Number
Defined in: schema.ts:314
Identifies this schema as relating to a number value.
Inherited from¶
BaseNumberSchema.type