UNPKG

generaltranslation

Version:

A language toolkit for AI developers

24 lines (23 loc) 805 B
import { VAR_IDENTIFIER } from './constants'; import type { PluralOrSelectOption, LiteralElement, SelectElement } from '@formatjs/icu-messageformat-parser/types.js'; interface GTIndexedSelectOption extends PluralOrSelectOption { value: Array<LiteralElement>; } export interface GTIndexedSelectElement extends SelectElement { value: `${typeof VAR_IDENTIFIER}${number}`; options: { other: GTIndexedSelectOption; [key: string]: PluralOrSelectOption; }; } interface GTUnindexedSelectOption extends PluralOrSelectOption { value: Array<LiteralElement>; } export interface GTUnindexedSelectElement extends SelectElement { value: typeof VAR_IDENTIFIER; options: { other: GTUnindexedSelectOption; [key: string]: PluralOrSelectOption; }; } export {};