14 lines
206 B
TypeScript
14 lines
206 B
TypeScript
/**
|
|
* Base interface for entities with optional ID
|
|
*/
|
|
export interface Entity {
|
|
id?: number;
|
|
}
|
|
|
|
/**
|
|
* Named entity with optional ID
|
|
*/
|
|
export interface NamedEntity extends Entity {
|
|
name?: string;
|
|
}
|