Skip to content

Commit

Permalink
Update PositionalAudio prop typing (#60)
Browse files Browse the repository at this point in the history
Updated PositionalAudio types to correctly mark distance and loop as optional as they have defaults
  • Loading branch information
Stuart Lee committed Jul 17, 2020
1 parent 7814ae4 commit 0e8d1f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PositionalAudio.tsx
Expand Up @@ -6,8 +6,8 @@ import mergeRefs from 'react-merge-refs'

type Props = JSX.IntrinsicElements['positionalAudio'] & {
url: string
distance: number
loop: boolean
distance?: number
loop?: boolean
}

export const PositionalAudio = forwardRef(({ url, distance = 1, loop = true, ...props }: Props, ref) => {
Expand Down

0 comments on commit 0e8d1f9

Please sign in to comment.