Skip to main content

Type Alias: PresetId

PresetId = ShippedPresetId | string & object

Defined in: time/presets.ts:381

A string id naming a ViewPreset: a shipped id (autocompletes against ShippedPresetId) or a custom id from this Gantt's own zoomPresets (gantt.preset reversed fix-issue1-apis.md Design #11 for this one door — #489 owner ruling — because gantt.preset alone had no way to name a rung a consumer already put in their own ladder). (string & {}) keeps autocomplete for the shipped ids while still accepting any other string — see the PresetId glossary entry.