Skip to content

Instantly share code, notes, and snippets.

@jokester
Created March 15, 2019 16:01
Show Gist options
  • Save jokester/709a7a95b3487d5e7ada99a3143ef399 to your computer and use it in GitHub Desktop.
Save jokester/709a7a95b3487d5e7ada99a3143ef399 to your computer and use it in GitHub Desktop.
typescript declaration of next-mui-helper
// TYPE_ROOT/next-mui-helper/index.d.ts
declare module 'next-mui-helper/nextjs/makeNextDocument' {
import { Theme } from "@material-ui/core";
const makeNextDocument: (muiTheme?: Theme) => React.Component;
export = makeNextDocument;
}
declare module 'next-mui-helper/nextjs/makeNextApp' {
import { Theme } from "@material-ui/core";
const makeNextApp: (muiTheme?: Theme, layout?: React.Component) => React.Component;
export = makeNextApp;
}
declare module 'next-mui-helper/mui/withParts' {
import { Theme } from "@material-ui/core";
const withParts: (
muiTheme?: Theme,
layout?: React.Component,
enableNProgress?: boolean,
enableCssBaseline?: boolean
) => <T extends React.ComponentClass<any>>(part: T) => typeof part;
export = withParts;
}
declare module 'next-mui-helper/mui/defaultTheme' {
import { Theme } from "@material-ui/core";
const defaultTheme: Theme;
export = defaultTheme;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment