typesense / typesense-js

JavaScript / TypeScript client for Typesense
https://typesense.org/docs/api
Apache License 2.0
393 stars 74 forks source link

PresetSchema is declared as id but api returns name #190

Closed bfritscher closed 6 months ago

bfritscher commented 7 months ago

Description

Request Payload definition in typings does not match return value of API.

Steps to reproduce

query the presets api

image image

Expected Behavior

API and typings should match

Actual Behavior

mismatch, type has to be overriden to make a typescript application work

Metadata

Typesense Version: 0.25.2 Typesense Client: 1.7.2

jasonbosco commented 7 months ago

Could you submit a PR for this?