Files
requestarr/src/types/react-intl-auto.d.ts
Ryan Cohen f5864b49de refactor: update a few dev deps and convert to using type imports where possible (#2886)
* build: bump deps and add some new eslint rules

* refactor: run eslint --fix on code to convert to type imports where possible
2022-08-03 12:57:51 +09:00

12 lines
275 B
TypeScript

import type { MessageDescriptor } from 'react-intl';
declare module 'react-intl' {
interface ExtractableMessage {
[key: string]: string;
}
export function defineMessages<T extends ExtractableMessage>(
messages: T
): { [K in keyof T]: MessageDescriptor };
}