13 lines
241 B
TypeScript
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
|
|
}
|