We’ve been using OSDK for about a year now and love it. It fit seamlessly into our existing TS stack and compiled just fine.
Starting with OSDK Generator v1.0.0 and up, the generated TS code no longer passes our TS compiler in two places.
Here’s one example from Ontology.d.ts
, located within the /sdk
directory:
export interface Ontology extends ClientOntology<typeof Ontology> {
objects: Objects;
actions: Actions;
/** @deprecated use batchActions */
bulkActions: BulkActions;
batchActions: BatchActions;
queries: Queries;
}
The TS compiler throws the following error:
Interface ‘Ontology’ incorrectly extends interface ‘Ontology<{ metadata: { ontologyRid: “ri.ontology.main.ontology.redacted”; ontologyApiName: “redacted”; userAgent: “typescript-sdk/0.16.0 typescript-sdk-generator/1.3.1”; }; objects: { …; }; actions: { …; }; queries: {}; }>’.
This prevents our entire project from compiling. Excluding via tsconfig’s exclude
directive does not work.
Has anyone seen this issue and been able to remedy? Thanks in advance.