Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/Typesense/Collection.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import ApiCall from "./ApiCall";
import Collections, { CollectionCreateSchema } from "./Collections";
import Collections from "./Collections";
import type {
BaseCollectionCreateSchema,
CollectionCreateSchema,
} from "./Collections";
import Documents, { DocumentSchema } from "./Documents";
import { ObjectNotFound } from "./Errors";
import Overrides from "./Overrides";
Expand Down Expand Up @@ -30,7 +34,7 @@ export type FieldType =

export interface CollectionFieldSchema
extends Partial<
Pick<CollectionCreateSchema, "token_separators" | "symbols_to_index">
Pick<BaseCollectionCreateSchema, "token_separators" | "symbols_to_index">
> {
name: string;
type: FieldType;
Expand Down
2 changes: 1 addition & 1 deletion src/Typesense/Collections.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ApiCall from "./ApiCall";
import type { CollectionFieldSchema, CollectionSchema } from "./Collection";

interface BaseCollectionCreateSchema {
export interface BaseCollectionCreateSchema {
name: string;
default_sorting_field?: string;
symbols_to_index?: string[];
Expand Down