-
Notifications
You must be signed in to change notification settings - Fork 73
/
custom.d.ts
58 lines (50 loc) · 1.76 KB
/
custom.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
/* eslint-disable @typescript-eslint/naming-convention */
declare module '*.svg' {
// eslint-disable-next-line @typescript-eslint/no-require-imports -- TODO: let's try to remove this
import React = require('react')
// @ts-expect-error For some reason SFC makes it work, even though it seems it does not exist
// eslint-disable-next-line @typescript-eslint/init-declarations
export const ReactComponent: React.SFC<React.SVGProps<SVGSVGElement>>
const src: string
export default src
}
declare module '*.jpg' {
const content: string
export default content
}
declare module '*.png' {
const content: string
export default content
}
declare module '*.json' {
const content: string
export default content
}
declare module '*.yaml' {
const data: unknown
export default data
}
// We don't care about missing types from this package. Used only in spec/javascripts/PaymentGateways/braintree/BraintreeForm.spec.tsx
declare module 'braintree-web/hosted-fields';
// TODO: when we use a official release of Quickstarts we can remove this workaround
declare module '@patternfly/quickstarts/dist/quickstarts-full.es' {
export function useLocalStorage (key: string, value: unknown): [unknown, unknown]
export function QuickStartContainer (props: React.PropsWithChildren<{
useLegacyHeaderColors: unknown;
activeQuickStartID: unknown;
allQuickStartStates: unknown;
language: string;
loading: boolean;
markdown: unknown;
quickStarts: unknown;
setActiveQuickStartID: unknown;
setAllQuickStartStates: unknown;
showCardFooters: boolean;
}>): React.ReactElement
export function QuickStartCatalogPage (props: {
showFilter: boolean;
hint: string;
title: string;
}): React.ReactElement
}
declare let __webpack_public_path__: string