Skip to content

Options for Autosuggest Support #253

@maou-shonen

Description

@maou-shonen

Hi! I really like the API of Wretch,
but I encountered issue #251 right when I started using it.

It would be fantastic to have autosuggest support.
Being loosely typed shouldn’t prevent the addition of autosuggestions,
here’s a possible example.

type Options = Omit<
  RequestInit,
  "SomeWretchExcludedOptions1" | "SomeWretchExcludedOptions2"
> & {
  SomeWretchOnlyOption1: string
  SomeWretchOnlyOption2: number
  [otherKey: string]: any
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions