Convert all v5 JS/JSX source files to TS/TSX, add tsconfig.json, install typescript and @types/react* dev deps, add typecheck npm script, create types.ts with shared prop types, and update Tailwind CSS source glob and shadcn components.json to include TS extensions.
11 lines
220 B
TypeScript
11 lines
220 B
TypeScript
import { createInertiaApp } from '@inertiajs/react';
|
|
import '../../css/v5/app.css';
|
|
|
|
createInertiaApp({
|
|
id: 'v5-app',
|
|
pages: {
|
|
path: './Pages',
|
|
extension: '.tsx',
|
|
},
|
|
strictMode: true,
|
|
});
|