resolveWeekStart()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Resolves the effective week start day from platform settings.
export declare function resolveWeekStart(settings: ISettings | undefined): WeekStart;
Parameters
Parameter | Type | Description |
|---|---|---|
settings | ISettings | undefined | platform settings to read; |
Returns
the resolved WeekStart
Remarks
Applies the feature-flag override (enableNewUIWeekStartChange together with weekStartOnMondayEnabled force Monday), otherwise honors the weekStart setting, defaulting to Sunday when it (or the whole settings object) is missing. This is the single source of the derivation shared by the dashboard’s week-start selector and non-dashboard hosts.