@izzyjs/route
Version:
Use your AdonisJs routes in your Inertia.js application
27 lines (26 loc) • 581 B
TypeScript
declare const methods: {
readonly GET: "get";
readonly POST: "post";
readonly PUT: "put";
readonly PATCH: "patch";
readonly DELETE: "delete";
};
export type Method = (typeof methods)[keyof typeof methods];
/**
* Shape of the serialized route specific to the formatter
*/
export type SerializedRoute = {
name: string;
path: string;
params?: string[];
domain: 'root' | string;
method: Method;
};
export interface GlobalIzzyJs {
routes: SerializedRoute[];
current: string;
config?: {
baseUrl?: string;
};
}
export {};