-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript Types? #1
Comments
It can be used in vite.config.ts and it should be working without any issues. But, support for TypeScript might be implemented if required in future versions. |
It would be great to have the type definitions for this package. It would prevent VS Code from complaining. The workaround for now is to declare the module ourselves: declare module "vite-plugin-favicons-inject"; And include that file in the proper tsconfig. |
No chance for types, I take it? |
If anyone is looking to add their own type definitions, in your declare module 'vite-plugin-favicons-inject' {
import type { Plugin } from 'vite';
import type { FaviconOptions } from 'favicons';
export type VPFIPluginConfig = {
failGraciously?: boolean;
};
export default function vitePluginFaviconsInject(
source: string,
config?: FaviconOptions,
pluginConfig?: VPFIPluginConfig,
): Plugin;
} |
Any chance you can generate typescript types so this can work with vite.config.ts files?
The text was updated successfully, but these errors were encountered: