Files
leim-tools/src/models/Characters.ts
2024-04-06 22:13:39 +02:00

13 lines
241 B
TypeScript

import type { LeimDate } from './Date'
export interface Character {
name: string
description?: string
birth?: LeimDate
death?: LeimDate
}
export function isCharacter(object: any): object is Character {
return 'birth' in object
}