-
Notifications
You must be signed in to change notification settings - Fork 116
Expand file tree
/
Copy pathindex.d.ts
More file actions
48 lines (41 loc) · 1.27 KB
/
Copy pathindex.d.ts
File metadata and controls
48 lines (41 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import '@tanstack/react-table';
import type { RowData } from '@tanstack/react-table';
import type en from './translations/en.json';
import type { en as adeEn } from '@letta-cloud/ui-ade-components/translations';
import { en as componentTranslations } from '@letta-cloud/ui-component-library';
/* eslint-disable @typescript-eslint/no-explicit-any */
declare module '*.svg' {
const content: any;
// eslint-disable-next-line @typescript-eslint/naming-convention
export const ReactComponent: any;
export default content;
}
declare module '*.af' {
const value: any;
export default value;
}
declare module '*.webp' {
const value: string;
export default value;
}
declare module '@tanstack/react-table' {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface ColumnMeta<TData extends RowData, TValue> {
style: {
columnAlign?: 'center' | 'left' | 'right';
sticky?: 'left' | 'right';
width?: string;
};
}
}
export const messages = {
...en,
...adeEn,
...componentTranslations,
};
type Messages = typeof messages;
declare global {
// Use type safe message keys with `next-intl`
// eslint-disable-next-line @typescript-eslint/no-empty-interface, @typescript-eslint/no-empty-object-type
interface IntlMessages extends Messages {}
}