Skip to content

Instantly share code, notes, and snippets.

@BiosBoy
Created August 10, 2024 05:59
Show Gist options
  • Save BiosBoy/bb6e910aedada98745bd940dac779232 to your computer and use it in GitHub Desktop.
Save BiosBoy/bb6e910aedada98745bd940dac779232 to your computer and use it in GitHub Desktop.
interface User {
name: string;
age: number;
isAdmin: boolean;
}
interface Employee extends User {
employeeId: number;
}
type User = {
name: string;
age: number;
isAdmin: boolean;
};
type Status = 'success' | 'error' | 'loading';
type Employee = User & {
employeeId: number;
};
type Employee = User & {
employeeId: number;
};
interface User {
role: string;
}
interface User {
department: string;
}
type EventName = `on${string}`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment