Added character list in search
This commit is contained in:
12
src/models/Characters.ts
Normal file
12
src/models/Characters.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user