我想扩展一个类型。我该怎么做?
declare type IntervalType =
| "day"
| "week"
| "month",
...
type currentIntervalTypes = IntervalType[] & "year";
const intervalTypes: extendedIntervalTypes = [
"day",
"month",
"year",
];
打字稿错误:Type "year" is not assignable to type