Init commit
This commit is contained in:
7
resources/js/types/Jobs/job.d.ts
vendored
Normal file
7
resources/js/types/Jobs/job.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
export type Job = {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
is_active: boolean;
|
||||
created_at: Date;
|
||||
}
|
23
resources/js/types/global.d.ts
vendored
Normal file
23
resources/js/types/global.d.ts
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
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 'vue' {
|
||||
interface ComponentCustomProperties {
|
||||
route: typeof ziggyRoute;
|
||||
}
|
||||
}
|
||||
|
||||
declare module '@inertiajs/core' {
|
||||
interface PageProps extends InertiaPageProps, AppPageProps {}
|
||||
}
|
4
resources/js/types/index.d.ts
vendored
Normal file
4
resources/js/types/index.d.ts
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
export type PageProps<
|
||||
T extends Record<string, unknown> = Record<string, unknown>,
|
||||
> = T & {
|
||||
};
|
1
resources/js/types/vite-env.d.ts
vendored
Normal file
1
resources/js/types/vite-env.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
/// <reference types="vite/client" />
|
Reference in New Issue
Block a user