Skip to content

数字字面量类型

typescript
function foo (num: 1 | 3 | 5): void {
  // ...
}