Skip to content

Commit d8f39c9

Browse files
elringusFryuni
andauthored
fix astro plugin type (#10)
Co-authored-by: Luiz Ferraz <[email protected]>
1 parent e449e6f commit d8f39c9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "imgit",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Transform images, video and YouTube links to HTML optimized for web vitals.",
55
"author": "Elringus (https://elringus.me)",
66
"license": "MIT",
@@ -32,7 +32,7 @@
3232
},
3333
"devDependencies": {
3434
"typescript": "^5.3.3",
35-
"vitest": "^1.1.0",
36-
"@vitest/coverage-v8": "^1.1.0"
35+
"vitest": "^1.1.3",
36+
"@vitest/coverage-v8": "^1.1.3"
3737
}
3838
}

samples/astro/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"preview": "astro preview"
66
},
77
"dependencies": {
8-
"astro": "^4.0.7",
9-
"imgit": "^0.0.0-alpha.41"
8+
"astro": "^4.1.1",
9+
"imgit": "^0.1.2"
1010
}
1111
}

src/plugin/astro.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Prefs, Platform, Plugin, std } from "../server/index.js";
1+
import { Prefs, Platform, Plugin, std } from "../server/index.js";
22
import { bind } from "../server/platform/index.js";
33
import vite from "../plugin/vite.js";
44

@@ -8,7 +8,7 @@ declare type AstroIntegration = {
88
hooks: {
99
"astro:config:setup"?: (options: {
1010
injectScript: AstroInjector;
11-
updateConfig: (config: { vite: { plugins: unknown[] } }) => void;
11+
updateConfig: (config: { vite: { plugins: [ReturnType<typeof vite>] } }) => void;
1212
}) => void | Promise<void>;
1313
};
1414
};

0 commit comments

Comments
 (0)