michtio
07/20/2022, 2:05 PMimport Typesense from 'typesense'
export const useTypesenseClient = (protocol = 'https', port = 443): SearchClient => {
Where it will say SearchClient
not found, which is kind of obvious, but I find no information whatsoever on how to import types / which types / etc … ?Ross
07/20/2022, 2:33 PMimport { Client } from 'typesense';
import {
SearchParams,
SearchOptions,
SearchResponse
} from 'typesense/lib/Typesense/Documents';
import {
MultiSearchRequestSchema,
MultiSearchRequestsSchema,
MultiSearchResponse
} from 'typesense/lib/Typesense/MultiSearch';
import { CollectionSchema } from 'typesense/lib/Typesense/Collection';
michtio
07/20/2022, 3:52 PM