Skip to content

Commit

Permalink
fix astro plugin type (#10)
Browse files Browse the repository at this point in the history
Co-authored-by: Luiz Ferraz <[email protected]>
  • Loading branch information
elringus and Fryuni authored Jan 6, 2024
1 parent e449e6f commit d8f39c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions samples/astro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions src/plugin/astro.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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<typeof vite>] } }) => void;
}) => void | Promise<void>;
};
};
Expand Down

0 comments on commit d8f39c9

Please sign in to comment.