You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue Description:
I'm in need of TypeScript typings to use the vue-confetti library in TypeScript projects.
Proposal:
Add TypeScript declaration files (.d.ts) to support TypeScript.
Expected Outcome:
After adding TypeScript declaration files, users will be able to safely use the vue-confetti library in TypeScript projects with autocompletion and type checking.
Additional Information:
The vue-confetti library is highly useful and desirable for many Vue.js developers, but the lack of TypeScript typings may hinder comfortable development with TypeScript. Adding TypeScript declaration files will significantly ease the use of this library in projects built on Vue.js with TypeScript.
The text was updated successfully, but these errors were encountered:
This is what I use for a nuxt typescript integration
// vue-confetti.d.ts
// If vue-confetti exports types, you can import them directly
// For now, let's assume Confetti type can be inferred from the plugin.
// If not, you may manually define the methods or use `any` as a fallback.
declare module '#app' {
interface NuxtApp {
$confetti: {
start: (any?: any) => void
stop: () => void
update: (options: object) => void
}
}
}
// This is important to ensure the module augmentation takes effect
export { }
Issue Description:
I'm in need of TypeScript typings to use the vue-confetti library in TypeScript projects.
Proposal:
Add TypeScript declaration files (.d.ts) to support TypeScript.
Expected Outcome:
After adding TypeScript declaration files, users will be able to safely use the vue-confetti library in TypeScript projects with autocompletion and type checking.
Additional Information:
The vue-confetti library is highly useful and desirable for many Vue.js developers, but the lack of TypeScript typings may hinder comfortable development with TypeScript. Adding TypeScript declaration files will significantly ease the use of this library in projects built on Vue.js with TypeScript.
The text was updated successfully, but these errors were encountered: