Skip to content

Commit

Permalink
Merge pull request #22 from ArianHamdi/patch-1
Browse files Browse the repository at this point in the history
type: make options properties optional
  • Loading branch information
pkjy authored Jun 5, 2024
2 parents 111d614 + 38e817a commit 7e54c13
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pcm-player.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ declare module 'pcm-player' {
'Float32': Float32Array
}
interface option {
inputCodec: keyof inputCodecs
channels: number
sampleRate: number
flushTime: number
fftSize: 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192 | 16384 | 32768
inputCodec?: keyof inputCodecs
channels?: number
sampleRate?: number
flushTime?: number
fftSize?: 32 | 64 | 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192 | 16384 | 32768
onstatechange?: (node: AudioContext, event: Event, type: AudioContextState) => void
onended?: (node: AudioBufferSourceNode, event: Event) => void
}
Expand Down

0 comments on commit 7e54c13

Please sign in to comment.