-
Notifications
You must be signed in to change notification settings - Fork 0
/
ambient.d.ts
35 lines (27 loc) · 896 Bytes
/
ambient.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
// -----------------------------------------------------------------------------
// TypeScript helpers
/** Fix this type, preferably before accepting the PR */
type $FixMe = any;
/** This `any` is intentional => never has to be fixed */
type $IntentionalAny = any;
/** TS cannot express the proper type atm */
type $Unexpressable = any;
// -----------------------------------------------------------------------------
// MDX stuff
declare module "*.mdx" {
let MDXComponent: () => JSX.Element;
export default MDXComponent;
}
declare module "@mdx-js/react" {
interface MDXProps {
children: React.ReactNode;
components: Record<string, React.ComponentType<$IntentionalAny>>;
}
export class MDXProvider extends React.Component<MDXProps> {}
}
// GraphQL
declare module "*.graphql" {
import { DocumentNode } from "graphql";
const Schema: DocumentNode;
export = Schema;
}