-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.d.ts
More file actions
31 lines (25 loc) · 864 Bytes
/
Copy pathenv.d.ts
File metadata and controls
31 lines (25 loc) · 864 Bytes
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
/// <reference types="vite/client" />
/* eslint-disable @typescript-eslint/consistent-indexed-object-style */
/* eslint-disable @typescript-eslint/consistent-type-definitions */
import type { TFunction } from 'i18next'
declare global {
interface WithClassName {
className?: string
}
type Keys<T> = keyof T
type Values<T> = T[keyof T]
type MetaObject =
| {
title: string
}
| { name: string; content: string }
| { property: string; content: string }
type MetaFunction<T extends Record<string, unknown> = unknown> = (t: TFunction, args?: Partial<T>) => MetaObject[]
}
declare module 'react' {
interface CSSProperties {
[key: `--${string}`]: string | number | undefined
}
}
/* eslint-enable @typescript-eslint/consistent-indexed-object-style */
/* eslint-enable @typescript-eslint/consistent-type-definitions */