20 lines
340 B
TypeScript
20 lines
340 B
TypeScript
//// [nestedFreshLiteral.ts]
|
|
interface CSSProps {
|
|
color?: string
|
|
}
|
|
interface NestedCSSProps {
|
|
nested?: NestedSelector
|
|
}
|
|
interface NestedSelector {
|
|
prop: CSSProps;
|
|
}
|
|
|
|
let stylen: NestedCSSProps = {
|
|
nested: { prop: { colour: 'red' } }
|
|
}
|
|
|
|
//// [nestedFreshLiteral.js]
|
|
var stylen = {
|
|
nested: { prop: { colour: 'red' } }
|
|
};
|