Skip to content

Commit

Permalink
Update generated types
Browse files Browse the repository at this point in the history
  • Loading branch information
kucrut committed Nov 25, 2024
1 parent 856a746 commit ba90255
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
"rollup-plugin-external-globals": "^0.13.0",
"typescript": "5.5.4",
"typescript-eslint": "^8.15.0",
"vite": "^5.3.0",
"vite": "^5.4.11",
"vite-plugin-external": "^4.0.1"
},
"peerDependencies": {
"rollup-plugin-external-globals": "^0.13.0",
"vite": "^5.3.0",
"vite": "^5.4.11",
"vite-plugin-external": "^4.0.1"
},
"peerDependenciesMeta": {
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 12 additions & 6 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
declare module '@kucrut/vite-for-wp' {
export function v4wp(options?: V4wpOptions): Plugin;
export default function create_config(input: Input, out_dir: string, extra_config?: UserConfig): UserConfig;
export type UserConfig = import('vite').UserConfig;
export type Input = import('vite').ResolvedConfig['build']['rollupOptions']['input'];
export type OutDir = import('vite').ResolvedConfig['build']['outDir'];
export type Plugin = import('vite').PluginOption;
export type UserConfig = import("vite").UserConfig;
export type Input = import("vite").ResolvedConfig["build"]["rollupOptions"]["input"];
export type OutDir = import("vite").ResolvedConfig["build"]["outDir"];
export type Plugin = import("vite").PluginOption;
/**
* v4wp options
*/
Expand All @@ -18,10 +18,12 @@ declare module '@kucrut/vite-for-wp' {
*/
outDir?: OutDir | undefined;
};

export {};
}

declare module '@kucrut/vite-for-wp/plugins' {
export function dev_server(options?: DevServerOptions): import('vite').Plugin;
export function dev_server(options?: DevServerOptions): import("vite").Plugin;
/**
* Dev Server Options
*/
Expand All @@ -32,7 +34,7 @@ declare module '@kucrut/vite-for-wp/plugins' {
manifest_dir?: string | undefined;
};
export function wp_scripts(options?: WPScriptsOptions): Plugin;
type Plugin = import('vite').PluginOption;
type Plugin = import("vite").PluginOption;
/**
* WPScriptsOptions
*/
Expand All @@ -44,6 +46,8 @@ declare module '@kucrut/vite-for-wp/plugins' {
[k: string]: string;
} | undefined;
};

export {};
}

declare module '@kucrut/vite-for-wp/utils' {
Expand All @@ -63,6 +67,8 @@ declare module '@kucrut/vite-for-wp/utils' {
port?: number | undefined;
};
export function wp_globals(): Record<string, string>;

export {};
}

//# sourceMappingURL=index.d.ts.map
10 changes: 4 additions & 6 deletions types/index.d.ts.map
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@
"UserConfig",
"Input",
"OutDir",
"Plugin",
"WPScriptsOptions"
"Plugin"
],
"sources": [
"../src/exports/index.js",
"../src/exports/plugins/wp-scripts.js",
"../src/exports/plugins/wp-scripts.d.ts"
"../src/exports/plugins/wp-scripts.js"
],
"sourcesContent": [
null,
null,
null
],
"mappings": ";;;aAG6BA,UAAUA;aACyCC,KAAKA;aACrBC,MAAMA;aAC3BC,MAAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;MCJNA,MAAMA;;;;MCGrCC,gBAAgBA"
"mappings": ";;;aAG6BA,UAAUA;aACyCC,KAAKA;aACrBC,MAAMA;aAC3BC,MAAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MCJNA,MAAMA",
"ignoreList": []
}

0 comments on commit ba90255

Please sign in to comment.