@rzl-zone/ziggy-route
Version:
Typed Laravel route generator for any frontend — works with React, Vue, Vanilla JS, and other JavaScript-based stacks.
50 lines • 1.05 kB
TypeScript
import{Plugin}from 'vite';
/**
* Options for configuring the Rzl Ziggy Route plugin.
*/
type Config={
/**
* Whether to use `sail` instead of the `php` command.
* @default false
*/
sail?:boolean;
/**
* Route group to generate.
*/
group?:string;
/**
* Application URL.
*/
url?:string;
/**
* Generate TypeScript declaration file.
* @default true
*/
types?:boolean;
/**
* Generate only the TypeScript declaration file.
* @default false
*/
typesOnly?:boolean;
/**
* Route name patterns to include.
* @default []
*/
only?:string[];
/**
* Route name patterns to exclude.
* @default []
*/
except?:string[];
/**
* Delay before running the generating is executed (in ms)
*
* @default 100ms
*/
delay?:number | undefined;
/**
* Delay before running the generating can be executed again (in ms)
*
* @default 300ms
*/
throttle?:number | undefined;};declare const _default:(config?:Config)=>Plugin;export{_default as default};