Skip to content

Commit

Permalink
fix(imports): Restrict type of the items in a series to exclude 'Series'
Browse files Browse the repository at this point in the history
  • Loading branch information
kellnerd committed Jul 24, 2024
1 parent 5a41a9f commit 4e11b72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/types/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export type ParsedAuthor = ParsedBaseEntity & {
beginDate?: string;
endDate?: string;
ended: boolean;
// TODO: `type` is currently ignored, only `typeId` is actually used!
type?: string;
typeId?: number;
genderId?: number;
Expand Down Expand Up @@ -79,7 +80,7 @@ export type ParsedPublisher = ParsedBaseEntity & {
export type ParsedSeries = ParsedBaseEntity & {

/** Type of the items in the series. */
entityType: EntityTypeString;
entityType: Exclude<EntityTypeString, 'Series'>;
orderingTypeId: number;
};

Expand Down

0 comments on commit 4e11b72

Please sign in to comment.