Open abdel-17 opened 7 months ago
Ah yes indeed cc @SBrandeis
Current typing is generated in generate-dts.ts
for the inference package, would need to modify the script. Maybe call tsup
with --dts-resolve
as a first step and then our custom stuff.
In the types of the
@huggingface/inference
package, thetextGeneration
function is declared as followsBut the
TextGenerationOutput
type is missing from the file, so the return type is inferred asany
by TypeScript.In the source code, the
TextGenerationOutput
type is imported from this file in a separate package, which does correctly have the type, so this is likely an issue with the build step.