Skip to content

isValidFiscalYearLabel

  • The core functions, which every industry uses.
isValidFiscalYearLabel(value: unknown): value is FiscalYearLabel

Return 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 FiscalCalendar or passing getQuarter its options.
ParameterTypeDescription
valueunknowncandidate value of any type

boolean indicating validity

import { isValidFiscalYearLabel } from "@northguild/gmt/calendar/validate";
isValidFiscalYearLabel("startYear") // true
output 

calendar/validate/isValidFiscalYearLabel.ts

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.