This commit is contained in:
Half-Shot
2024-12-09 11:53:09 +00:00
parent 59e8e76969
commit 30ca842d63

View File

@@ -29,9 +29,11 @@ const TestComponent: FC = () => {
}
return (
<>
<button onClick={() => audioCtx.playSound("aSound")}>Valid sound</button>
<button onClick={() => void audioCtx.playSound("aSound")}>
Valid sound
</button>
{/* eslint-disable-next-line @typescript-eslint/no-explicit-any*/}
<button onClick={() => audioCtx.playSound("not-valid" as any)}>
<button onClick={() => void audioCtx.playSound("not-valid" as any)}>
Invalid sound
</button>
</>