【发布时间】:2021-04-03 16:30:10
【问题描述】:
我对带有 react-scripts 的 typescript 有非常奇怪的问题
Line 5:16: Parsing error: Unexpected token
3 | class AutoUpdateBase<TBinding> implements IAutoUpdate<TBinding>{
4 |
> 5 | protected binding?: (arg: TBinding) => void;
| ^
6 |
7 | resolveValue(): TBinding{ throw new Error('Not implements'); };
8 | reciveValue(value: TBinding): void{ throw new Error('Not implements'); };
...这可能会发生??
【问题讨论】:
标签: reactjs typescript compiler-errors keyword react-scripts