From d8f39c9dbb1ab0dc9ccd77c075e1d4026850a264 Mon Sep 17 00:00:00 2001 From: Artyom Sovetnikov <2056864+elringus@users.noreply.github.com> Date: Sat, 6 Jan 2024 04:45:46 +0300 Subject: [PATCH] fix astro plugin type (#10) Co-authored-by: Luiz Ferraz --- package.json | 6 +++--- samples/astro/package.json | 4 ++-- src/plugin/astro.ts | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 6ebd2de..ac48361 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "imgit", - "version": "0.1.1", + "version": "0.1.2", "description": "Transform images, video and YouTube links to HTML optimized for web vitals.", "author": "Elringus (https://elringus.me)", "license": "MIT", @@ -32,7 +32,7 @@ }, "devDependencies": { "typescript": "^5.3.3", - "vitest": "^1.1.0", - "@vitest/coverage-v8": "^1.1.0" + "vitest": "^1.1.3", + "@vitest/coverage-v8": "^1.1.3" } } diff --git a/samples/astro/package.json b/samples/astro/package.json index dd6daf5..31e02e2 100644 --- a/samples/astro/package.json +++ b/samples/astro/package.json @@ -5,7 +5,7 @@ "preview": "astro preview" }, "dependencies": { - "astro": "^4.0.7", - "imgit": "^0.0.0-alpha.41" + "astro": "^4.1.1", + "imgit": "^0.1.2" } } diff --git a/src/plugin/astro.ts b/src/plugin/astro.ts index a03895c..8092e6e 100644 --- a/src/plugin/astro.ts +++ b/src/plugin/astro.ts @@ -1,4 +1,4 @@ -import { Prefs, Platform, Plugin, std } from "../server/index.js"; +import { Prefs, Platform, Plugin, std } from "../server/index.js"; import { bind } from "../server/platform/index.js"; import vite from "../plugin/vite.js"; @@ -8,7 +8,7 @@ declare type AstroIntegration = { hooks: { "astro:config:setup"?: (options: { injectScript: AstroInjector; - updateConfig: (config: { vite: { plugins: unknown[] } }) => void; + updateConfig: (config: { vite: { plugins: [ReturnType] } }) => void; }) => void | Promise; }; };