forked from ShaneFindley/react-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.d.ts
97 lines (80 loc) · 2.14 KB
/
global.d.ts
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/// <reference types="node" />
/// <reference types="react" />
/// <reference types="react-dom" />
declare namespace NodeJS {
interface ProcessEnv {
readonly NODE_ENV: 'development' | 'production' | 'test'
readonly PUBLIC_URL: string
}
}
declare module '*.avif' {
const src: string
export default src
}
declare module '*.bmp' {
const src: string
export default src
}
declare module '*.gif' {
const src: string
export default src
}
declare module '*.jpg' {
const src: string
export default src
}
declare module '*.jpeg' {
const src: string
export default src
}
declare module '*.png' {
const src: string
export default src
}
declare module '*.webp' {
const src: string
export default src
}
declare module '*.svg' {
import type * as React from 'react'
export const ReactComponent: React.FunctionComponent<React.SVGProps<
SVGSVGElement
> & { title?: string }>
const src: string
export default src
}
declare module '*.module.css' {
const classes: Readonly<Record<string, string>>
export default classes
}
declare module '*.module.scss' {
const classes: Readonly<Record<string, string>>
export default classes
}
declare module '*.module.sass' {
const classes: Readonly<Record<string, string>>
export default classes
}
declare module '@ckeditor/ckeditor5-react' {
import type ClassicEditor from '@ckeditor/ckeditor5-build-classic'
import { type EditorConfig } from '@ckeditor/ckeditor5-core/src/editor/editorconfig'
import type Event from '@ckeditor/ckeditor5-utils/src/eventinfo'
import type * as React from 'react'
const CKEditor: React.FunctionComponent<{
disabled?: boolean
editor: typeof ClassicEditor
data?: string
id?: string
config?: EditorConfig
rows?: number
onReady?: (editor: ClassicEditor) => void
onChange?: (event: Event, editor: ClassicEditor) => void
onBlur?: (event: Event, editor: ClassicEditor) => void
onFocus?: (event: Event, editor: ClassicEditor) => void
onError?: (event: Event, editor: ClassicEditor) => void
}>
export { CKEditor }
}
declare namespace T {
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>
}