Skip to content

Conversation

Max-0n
Copy link

@Max-0n Max-0n commented Jan 9, 2025

Sprite ID's uses string type

const { play } = useSound('/path/to/sprite.mp3', {
  sprite: {
    laser: [0, 300],
    explosion: [1000, 300],
    meow: [2000, 75],
  },
})

My commit fix type issue while call play cb

play({ id: 'kick' })

@Max-0n Max-0n changed the title Fix sprite id types chore: fix sprite id types Jan 9, 2025
@Max-0n Max-0n changed the title chore: fix sprite id types chore: fix sprite id type Jan 9, 2025
@QkeleQ10
Copy link

QkeleQ10 commented Feb 2, 2025

@Tahul Please implement, this tiny error upsets my TypeScript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants