Skip to content

Commit

Permalink
chore: lint docs
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Mar 21, 2024
1 parent fff2e63 commit da29ca0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ To start using Nuxt Scripts, you can use the [useScript](https://unhead.unjs.io/
If you want to get a feel for how the module works, you can load the `js-confetti` library:

```ts
type JSConfettiApi = { addConfetti: (options?: { emojis: string[] }) => void }
interface JSConfettiApi { addConfetti: (options?: { emojis: string[] }) => void }
const { addConfetti } = useScript<JSConfettiApi>('https://cdn.jsdelivr.net/npm/js-confetti@latest/dist/js-confetti.browser.js', {
trigger: 'idle', // load on onNuxtReady
assetStrategy: 'bundle', // script will be served from your server instead of cdn.jsdelivr.net
Expand Down Expand Up @@ -92,7 +92,7 @@ export default defineNuxtConfig({
scripts: {
overrides: {
// the key is either a specified key or the script src
'confetti': {
confetti: {
assetStrategy: 'bundle'
}
}
Expand Down

0 comments on commit da29ca0

Please sign in to comment.