identity-source: WikidataEntity matches #70's shape exactly
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -22,7 +22,8 @@ import type { ChainArticle, IdentityFacts, IdentitySource, WikidataClass } from
|
||||
|
||||
/** Structural slices of server/wikimedia/client.ts (#73) and shared/duel/profile.ts (#70). */
|
||||
export type BackgroundRequest = { lane: 'background'; timeoutMs: number; cache?: { ttlMs: number; maxBytes?: number } };
|
||||
export type WikidataEntity = { id?: string; claims?: Record<string, readonly unknown[]> };
|
||||
export type WikidataEntity = { id?: string; claims?: Record<string, readonly {
|
||||
rank?: string; mainsnak?: { snaktype?: string; datavalue?: { type?: string; value?: unknown } } }[]> };
|
||||
export type ProfileLike = { wikidataId: string | null; description: string | null; categories: readonly string[];
|
||||
instanceOf: readonly WikidataClass[]; subclassOf?: readonly WikidataClass[]; countries?: readonly string[];
|
||||
years?: readonly number[]; died?: boolean; links?: readonly number[]; cites?: readonly string[]; fetchedRevisionId?: number };
|
||||
|
||||
Reference in New Issue
Block a user