Step 2: Define Your Data Type
Create a TypeScript interface for the rows your table will display:
// types.ts
export interface Employee {
id: number
name: string
department: string
salary: number
startDate: string
active: boolean
}
Create a TypeScript interface for the rows your table will display:
// types.ts
export interface Employee {
id: number
name: string
department: string
salary: number
startDate: string
active: boolean
}