edgedb-js
edgedb-js copied to clipboard
Add link properties to interfaces generator
We do not currently generate properties for link properties in our interfaces generator. We should!
Open question: Do we need a special helper type to remove these properties?
Thanks for creating this, I followed your advice regarding how I can work around this for now and it worked, I'll post this here for people who might be facing the same issue:
I created a separate file and declared a module. The edgedb generated file is called "schema.ts" and the new file is called "extendedSchema.d.ts"
Code:
// extendedSchema.d.ts
import type { Player } from "./schema";
declare module "./schema" {
interface Player {
bounty?:number
}
}