Skip to content

Commit

Permalink
Add types for error and code. Resolves #202
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbosco committed Aug 9, 2024
1 parent 98df499 commit da58d9e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/typesense.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/typesense.min.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions lib/Typesense/Documents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ export interface SearchResponse<T extends DocumentSchema> {
conversation_id: string;
query: string;
};
error?: string;
code?: number;
}
export interface DocumentWriteParameters {
dirty_values?: "coerce_or_reject" | "coerce_or_drop" | "drop" | "reject";
Expand Down
2 changes: 1 addition & 1 deletion lib/Typesense/Documents.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/Typesense/Documents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ export interface SearchResponse<T extends DocumentSchema> {
conversation_id: string;
query: string;
};
error?: string;
code?: number;
}

export interface DocumentWriteParameters {
Expand Down

0 comments on commit da58d9e

Please sign in to comment.