Skip to content

Commit

Permalink
Merge pull request #873 from biothings/ctkp-reverse
Browse files Browse the repository at this point in the history
Add config type, fix attribute typing
  • Loading branch information
tokebe authored Sep 27, 2024
2 parents e4218c0 + c838e37 commit eae8ca9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/types/src/misc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export type APIDefinition = {
name: string; // Must match name on SmartAPI registry
infores?: string; // infores of API
primarySource?: boolean;
includeFlipped?: boolean; // Automatically generate flipped MetaEdges (TRAPI only)
} & ({ id: string } | { infores: string });

export interface APIList {
Expand Down
4 changes: 2 additions & 2 deletions packages/types/src/trapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ export interface TrapiAttribute {
value_type_id?: string;
attribute_source?: string | null;
value_url?: string | null;
attributes?: TrapiAttribute;
attributes?: TrapiAttribute[];
[additionalProperties: string]:
| string
| string[]
| null
| TrapiAttribute
| TrapiAttribute[]
| number
| number[];
}
Expand Down

0 comments on commit eae8ca9

Please sign in to comment.