optional-параметрами:
```
interface AudioNode extends EventTarget {
disconnect(destinationNode: AudioNode): void;
disconnect(destinationNode: AudioNode, output: number): void;
disconnect(destinationNode: AudioNode, output: number, input: number): void;
}
```
vs
```
interface AudioNode extends EventTarget {
disconnect(destinationNode: AudioNode, output?: number, input?: number): void;
}
```
теоретически можно добавить disconnect(destinationNode: AudioNode, output: number | undefined, input: number): void;
Обсуждают сегодня