Install Breeze

This commit is contained in:
2024-11-09 15:55:56 +01:00
parent 7e78476b1e
commit b39a51c625
65 changed files with 7416 additions and 190 deletions

17
resources/js/types/global.d.ts vendored Normal file
View File

@ -0,0 +1,17 @@
import { PageProps as InertiaPageProps } from '@inertiajs/core';
import { AxiosInstance } from 'axios';
import { route as ziggyRoute } from 'ziggy-js';
import { PageProps as AppPageProps } from './';
declare global {
interface Window {
axios: AxiosInstance;
}
/* eslint-disable no-var */
var route: typeof ziggyRoute;
}
declare module '@inertiajs/core' {
interface PageProps extends InertiaPageProps, AppPageProps {}
}

14
resources/js/types/index.d.ts vendored Normal file
View File

@ -0,0 +1,14 @@
export interface User {
id: number;
name: string;
email: string;
email_verified_at?: string;
}
export type PageProps<
T extends Record<string, unknown> = Record<string, unknown>,
> = T & {
auth: {
user: User;
};
};

1
resources/js/types/vite-env.d.ts vendored Normal file
View File

@ -0,0 +1 @@
/// <reference types="vite/client" />