Skip to content

Commit

Permalink
feat(types): expose typings ; fix nuxt autoimports/type resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed Dec 28, 2024
1 parent 1f066d6 commit a438130
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import type { Howl } from 'howler'
import type { ComposableOptions, HowlStatic, MaybeRef, PlayFunction, PlayOptions, ReturnedValue } from './types'
import { onMounted, ref, unref, watch } from 'vue-demi'

export type {
ComposableOptions,
}
export * from './types'

export function useSound(
url: MaybeRef<string>,
Expand Down
2 changes: 2 additions & 0 deletions src/nuxt/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Barrel file to target the same index on dist and dev
export * from '../'
4 changes: 2 additions & 2 deletions src/nuxt/runtime/composables/use-sound.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { SoundsPaths } from '#build/sounds/index.d'
import type { ComposableOptions } from '../../../types'
import type { ComposableOptions } from '../../'
import { useNuxtApp } from '#imports'
import { useSound as _useSound } from '../../../index'
import { useSound as _useSound } from '../../'

export function useSound(url: SoundsPaths, options: ComposableOptions = {}) {
const { $sounds } = useNuxtApp()
Expand Down

0 comments on commit a438130

Please sign in to comment.