Skip to content

Commit

Permalink
Implement TS declaration generator
Browse files Browse the repository at this point in the history
  • Loading branch information
lmeysel committed Jul 27, 2023
1 parent bc99916 commit 3a71ad5
Show file tree
Hide file tree
Showing 16 changed files with 7,693 additions and 26 deletions.
2 changes: 1 addition & 1 deletion dist/types/Router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default class Router<Name extends RouteName> extends String {
* @return {Object}
*/
get params(): {
[x: string]: ParameterValue | string[] | import("qs").ParsedQs | import("qs").ParsedQs[];
[x: string]: string[] | ParameterValue | import("qs").ParsedQs | import("qs").ParsedQs[];
_query?: Record<string, any>;
};
/**
Expand Down
18 changes: 18 additions & 0 deletions dist/types/vite-plugin.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { Plugin } from 'vite';
export interface ZiggyPluginConfig {
/**
* Issue the command using laravel sail. Use 'auto' to automatically determine if sails is available and running.
*/
sail?: boolean | 'auto';
/**
* Whether to output TS declarations. Use 'only' to emit only declartion and no routes file.
*/
declarations?: boolean | 'only';
/**
* Destination path where ziggy output files should be placed.
*/
destination?: string;
log?: boolean;
delay?: number;
}
export default function ZiggyPlugin(config: ZiggyPluginConfig): Plugin;
Loading

0 comments on commit 3a71ad5

Please sign in to comment.