Closed
Description
TypeScript Version: 2.1.1 / nightly (2.2.0-dev.201xxxxx)
Code
interface CSSProps {
color?: string
}
interface NestedCSSProps extends CSSProps {
nested?: NestedSelector
}
interface NestedSelector {
[selector: string]: CSSProps | undefined;
}
let stylen: NestedCSSProps;
// ok
stylen = {
nested: {
'&:hover': {
color: 'red'
}
}
}
// does error
stylen = {
nested: {
'&:hover': {
colour: 'red'
}
}
}
Expected behavior:
Works in nightly
Actual behavior:
Doesn't work in nightly. You don't get an error for the colour
typo