I'm trying to compile the code below and I get the error: error TS1110: Type expected
import { LayoutBase } from '../layout-base';
import { Style } from '../../styling/style';
import { CssProperty } from '../../core/properties';
import { View } from '../../core/view';
import { CoreTypes } from '../../enums';
export type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
export type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
export type FlexFlow = `${FlexDirection} ${FlexWrap}`;
What is wrong with the last line of code.
I expect the code to run without error
You are using older version of TypeScript (below 4.0.5), type interpolation was introduced from version 4.1.5 onwards.
You can change version on the left to 4.0.5 to see the same error.
For the best results, you can add typescript as a dev dependency in your project or install new version of typescript globally on your machine.