declare global { type Report = { id: number, name: string, assignee_id: string, category: string, status: string, created_at: string, updated_at: string, assignee: User }; type User = { id: number, name: string, email: string, email_verified_at: string, created_at: string, updated_at: string, reports: Report }; } import './../../vendor/archtechx/airwire/resources/js/airwired' declare module 'airwire' { export type TypeMap = { 'report-filter': ReportFilter 'create-report': CreateReport 'create-user': CreateUser } interface ReportFilter { search: string; assignee: number; category: number; status: string; reports: Report[]; changeStatus(report: Report|string|number): AirwirePromise; mount(): AirwirePromise; errors: { [key in keyof WiredProperties]: string[]; } loading: boolean; watch(responses: (response: ComponentResponse) => void, errors?: (error: AirwireException) => void): void; defer(callback: CallableFunction): void; refresh(): ComponentResponse; remount(...args: any): ComponentResponse; readonly: ReportFilter; deferred: ReportFilter; $component: ReportFilter; } interface CreateReport { name: string; assignee: number; category: number; create(): AirwirePromise; mount(): AirwirePromise; errors: { [key in keyof WiredProperties]: string[]; } loading: boolean; watch(responses: (response: ComponentResponse) => void, errors?: (error: AirwireException) => void): void; defer(callback: CallableFunction): void; refresh(): ComponentResponse; remount(...args: any): ComponentResponse; readonly: CreateReport; deferred: CreateReport; $component: CreateReport; } interface CreateUser { name: string; email: string; password: string; password_confirmation: string; create(): AirwirePromise; errors: { [key in keyof WiredProperties]: string[]; } loading: boolean; watch(responses: (response: ComponentResponse) => void, errors?: (error: AirwireException) => void): void; defer(callback: CallableFunction): void; refresh(): ComponentResponse; remount(...args: any): ComponentResponse; readonly: CreateUser; deferred: CreateUser; $component: CreateUser; } }