isValidFiscalYearLabel
Signature
Section titled “Signature”isValidFiscalYearLabel(value: unknown): value is FiscalYearLabelReturn true when value is a valid FiscalYearLabel: the rule that picks the calendar year naming a fiscal year.
- Valid values are
"startYear","endYear"and"majorityYear". - 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
FiscalCalendaror passinggetQuarterits options.
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 { isValidFiscalYearLabel } from "@northguild/gmt/calendar/validate";
isValidFiscalYearLabel("startYear") // 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.