# isValidFiscalYearLabel

Industry: Core

## Signature

```ts
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.

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `unknown` | candidate value of any type |

## Returns

boolean indicating validity

## Related types

- [`FiscalYearLabel`](/gmt/reference/types/FiscalYearLabel/)

## Examples

```ts
import { isValidFiscalYearLabel } from "@northguild/gmt/calendar/validate";

isValidFiscalYearLabel("startYear") // true
```

## Source

[calendar/validate/isValidFiscalYearLabel.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/calendar/validate/isValidFiscalYearLabel.ts)
