@gw2api/types
Version:
TypeScript types for all datastructures used by the Guild Wars 2 API
14 lines (11 loc) • 426 B
text/typescript
import type { SchemaAfter, SchemaVersion } from "../schema";
export type AccountHomeCat<Schema extends SchemaVersion = undefined> =
Schema extends undefined ? AccountHomeCat<Exclude<SchemaVersion, undefined>> :
Schema extends SchemaAfter<'2019-03-22T00:00:00.000Z'> | 'latest' ? number :
AccountHomeCatSchema.Legacy;
namespace AccountHomeCatSchema {
export interface Legacy {
id: number;
hint: string;
}
}