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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"lint-staged": "16.4.0",
"oxlint": "1.50.0",
"oxlint-tsgolint": "0.14.2",
"prettier": "^3.8.4",
"prettier": "^3.9.4",
"prettier-plugin-jsdoc": "^1.8.1",
"typedoc": "^0.28.18",
"typedoc-plugin-markdown": "^4.12.0",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

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

3 changes: 1 addition & 2 deletions src/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ export class TaskClient {
*/
async *waitForTasksIter(
taskUidsOrEnqueuedTasks:
| Iterable<TaskUidOrEnqueuedTask>
| AsyncIterable<TaskUidOrEnqueuedTask>,
Iterable<TaskUidOrEnqueuedTask> | AsyncIterable<TaskUidOrEnqueuedTask>,
options?: WaitOptions,
): AsyncGenerator<Task, void, undefined> {
for await (const taskUidOrEnqueuedTask of taskUidsOrEnqueuedTasks) {
Expand Down
3 changes: 1 addition & 2 deletions src/types/search-rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ export type SearchRuleTimeCondition = {
};

export type SearchRuleCondition =
| SearchRuleQueryCondition
| SearchRuleTimeCondition;
SearchRuleQueryCondition | SearchRuleTimeCondition;

/** Dynamic search rule object */
export type SearchRule = {
Expand Down
3 changes: 1 addition & 2 deletions src/types/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ export type TokenIndexRules = { filter?: Filter };
* @see {@link https://github.com/meilisearch/meilisearch/blob/b21d7aedf9096539041362d438e973a18170f3fc/crates/meilisearch-auth/src/lib.rs#L271-L277 | GitHub source code}
*/
export type TokenSearchRules =
| Record<string, TokenIndexRules | null>
| string[];
Record<string, TokenIndexRules | null> | string[];

/** Options object for tenant token generation. */
export type TenantTokenGeneratorOptions = {
Expand Down
10 changes: 3 additions & 7 deletions src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,7 @@ export type SearchSimilarDocumentsParams = {
*/

type Fields<T = RecordAny> =
| Extract<keyof T, string>[]
| Extract<keyof T, string>;
Extract<keyof T, string>[] | Extract<keyof T, string>;

/** Options for task enqueue that apply to all document write operations. */
export type TaskEnqueueOptions = {
Expand Down Expand Up @@ -509,9 +508,7 @@ export const ContentTypeEnum: Readonly<Record<string, ContentType>> = {
};

export type ContentType =
| "text/csv"
| "application/x-ndjson"
| "application/json";
"text/csv" | "application/x-ndjson" | "application/json";

export type RawDocumentAdditionOptions = DocumentOptions & {
csvDelimiter?: string;
Expand Down Expand Up @@ -561,8 +558,7 @@ export type GranularFilterableAttribute = {
};

export type FilterableAttributes =
| (string | GranularFilterableAttribute)[]
| null;
(string | GranularFilterableAttribute)[] | null;
export type DistinctAttribute = string | null;
export type SearchableAttributes = string[] | null;
export type SortableAttributes = string[] | null;
Expand Down
Loading