From 2df5a33cb8b34d56ae79d80122b14f8b86620e0b Mon Sep 17 00:00:00 2001 From: Vitaly Koiro Date: Sat, 17 May 2025 13:14:45 +0300 Subject: [PATCH] fix(vue): import in Vue with TypeScript --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- src/types/vue.d.ts | 12 ++++++------ 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 723a8a0..cb12fd1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## 4.1.2 - Released on 2025-05-17 + +### Fixes + +- Fixed import in Vue with TypeScript + +
+ ## 4.1.1 - Released on 2025-05-14 ### Reactor diff --git a/package.json b/package.json index 29c0fcf..eb815a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prismium-src", - "version": "4.1.1", + "version": "4.1.2", "description": "A modern JavaScript accordion library with smooth animations. Easily integrates with React, Vue, and vanilla JavaScript.", "type": "module", "scripts": { diff --git a/src/types/vue.d.ts b/src/types/vue.d.ts index ff08edd..c0db02b 100644 --- a/src/types/vue.d.ts +++ b/src/types/vue.d.ts @@ -11,7 +11,7 @@ export interface PrismiumInjection { * Reference to Prismium root element */ prismiumRef: Ref; - + /** * Reference to Prismium instance */ @@ -31,12 +31,12 @@ export interface PrismiumProps { * Options for configuring the Prismium instance */ options?: PrismiumOptions; - + /** * Modules to register with Prismium */ modules?: PrismiumModule[]; - + /** * Additional attributes to apply to the element */ @@ -52,7 +52,7 @@ export interface PrismiumCurrentProps { * @default 'div' */ selector?: string; - + /** * Additional attributes to apply to the element */ @@ -68,7 +68,7 @@ export interface PrismiumContentProps { * @default 'div' */ selector?: string; - + /** * Additional attributes to apply to the element */ @@ -98,5 +98,5 @@ export default { * Install Prismium plugin in Vue application * @param app - Vue application instance */ - install: (app: any) => void; + install(app: any): void {}, };