This description was created by Ellipsis for commit 71ff2c6c9ae45fc1826b022f18a015d101f96186
Summary:
The PR updates the build-types script to generate more flexible types by changing empty object types from never to unknown in the generated src/type-gen/openapi.ts.
Key points:
Updated build-types script in package.json to include --empty-objects-unknown flag.
Modified src/type-gen/openapi.ts to change Record<string, never> to Record<string, unknown>.
Affected components include atoms, BaseModel, hyperparameters, properties, datums, topic_model_metadatas, and results.
Ensures generated types are more flexible for dynamic data structures.
Summary:
The PR updates the
build-types
script to generate more flexible types by changing empty object types fromnever
tounknown
in the generatedsrc/type-gen/openapi.ts
.Key points:
build-types
script inpackage.json
to include--empty-objects-unknown
flag.src/type-gen/openapi.ts
to changeRecord<string, never>
toRecord<string, unknown>
.atoms
,BaseModel
,hyperparameters
,properties
,datums
,topic_model_metadatas
, andresults
.Generated with :heart: by ellipsis.dev