-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
43 lines (36 loc) · 1.1 KB
/
index.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
declare module 'mui-app-container' {
import React from 'react';
import { ModalProps } from '@material-ui/core/Modal';
import { AppBarProps } from '@material-ui/core/AppBar';
import { DrawerProps } from '@material-ui/core/Drawer';
interface AppContainerProps {
classes?: {};
disableContainer?: boolean;
}
interface AppContainerState {
appBarProps: {
className: string;
};
getAppBarProps: (props?: AppBarProps) => any;
contentProps: {
className: string;
};
getContentProps: (props?: React.HTMLProps<HTMLElement>) => any;
drawerProps: {
variant: 'persistent' | 'temporary';
open: boolean;
onClose: () => void;
classes: {
paper: string;
};
ModalProps: ModalProps;
};
getDrawerProps: (props?: DrawerProps) => any;
toggleDrawer: (temporaryOnly?: boolean) => void;
}
const AppContainerContext: React.Context<AppContainerState>;
export { AppContainerContext };
export default class AppContainer extends React.Component<AppContainerProps> {
static Consumer: React.Consumer<AppContainerState>;
}
}