isValidFiscalExtraWeek
Signature
Section titled “Signature”isValidFiscalExtraWeek(value: unknown): value is FiscalExtraWeekReturn true when value is a valid FiscalExtraWeek: the period a 53rd week is added to.
- Valid values are
"firstPeriod"and"lastPeriod". The ONS retail trading periods (UK) add a five-week January; the NRF 4-5-4 calendar (US) adds the week to the end. - Accepts any input type and returns false for non-string values.
- Use it to narrow a value read from config, an env var or a form before building a
FiscalCalendar.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | candidate value of any type |
Returns
Section titled “Returns”boolean indicating validity
Related types
Section titled “Related types”Examples
Section titled “Examples”import { isValidFiscalExtraWeek } from "@northguild/gmt/calendar/validate";
isValidFiscalExtraWeek("firstPeriod") // trueSource
Section titled “Source”Accessibility
© 2026 NorthGuild · Licences
Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.