UNPKG

ffxiv-textcommand-data

Version:
15 lines (11 loc) 572 B
type Fields = 'Command' | 'ShortCommand' | 'Alias' | 'ShortAlias' | 'Description'; type Locale = 'en' | 'ja' | 'de' | 'fr' | 'zh' | 'ko'; type Macro = { ID: number; } & Record<Fields, string>; type MacrosData = Record<Locale, Array<Macro>>; declare const _default: MacrosData; declare const nameToIdMap: Record<Locale, Record<string, number>>; declare function get(id: number, locale?: Locale): Macro | undefined; declare function search(query: string, locale?: Locale, _distance?: number): Macro | undefined; export { _default as data, get, nameToIdMap, search };