Skip to content

Commit f2ba029

Browse files
committed
chore: rename AliasListAllOpts -> AliasListAllOptions
1 parent 9880f1e commit f2ba029

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/alias/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ConnectionREST } from '../index.js';
22
import { WeaviateAlias, WeaviateAliasResponse } from '../openapi/types.js';
3-
import { Alias, AliasListAllOpts, CreateAliasArgs, UpdateAliasArgs } from './types.js';
3+
import { Alias, AliasListAllOptions, CreateAliasArgs, UpdateAliasArgs } from './types.js';
44

55
export interface Aliases {
66
/**
@@ -21,7 +21,7 @@ export interface Aliases {
2121
* @param {string | undefined} [opts.collection] Get all aliases defined for this collection.
2222
* @returns {Promise<Alias[] | undefined>} An array of aliases.
2323
*/
24-
listAll: (opts?: AliasListAllOpts) => Promise<Alias[] | undefined>;
24+
listAll: (opts?: AliasListAllOptions) => Promise<Alias[] | undefined>;
2525

2626
/**
2727
* Get information about an alias.
@@ -56,7 +56,7 @@ const alias = (connection: ConnectionREST): Aliases => {
5656
return {
5757
create: (args: CreateAliasArgs) =>
5858
connection.postReturn<WeaviateAlias, void>(`/aliases/`, { ...args, class: args.collection }),
59-
listAll: (opts?: AliasListAllOpts) =>
59+
listAll: (opts?: AliasListAllOptions) =>
6060
connection
6161
.get<WeaviateAliasResponse>(
6262
`/aliases${opts?.collection !== undefined ? '/?class=' + opts.collection : ''}`

src/alias/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ export type UpdateAliasArgs = {
1313
alias: string;
1414
};
1515

16-
export type AliasListAllOpts = {
16+
export type AliasListAllOptions = {
1717
collection?: string | undefined;
1818
};

0 commit comments

Comments
 (0)