-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Description
TypeScript Version: 2.1.1 / 2.2
Code
export function createMuiTheme(config = {} as any) {
const {
palette = createPalette(),
breakpoints = createBreakpoints(),
mixins = createMixins(breakpoints),
typography = createTypography(palette),
...more
} = config as any;
...
}
Expected behavior:
Compile without error.
Actual behavior:
TS2448:Block-scoped variable 'breakpoints' used before its declaration.
HerringtonDarkholme
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScript