Merge pull request #8405 from backstage/freben/nounpack
Do not unpack arguments directly on exported items 🧹
This commit is contained in:
@@ -26,13 +26,7 @@ export const todoApiRef: ApiRef<TodoApi>;
|
||||
export class TodoClient implements TodoApi {
|
||||
constructor(options: TodoClientOptions);
|
||||
// (undocumented)
|
||||
listTodos({
|
||||
entity,
|
||||
offset,
|
||||
limit,
|
||||
orderBy,
|
||||
filters,
|
||||
}: TodoListOptions): Promise<TodoListResult>;
|
||||
listTodos(options: TodoListOptions): Promise<TodoListResult>;
|
||||
}
|
||||
|
||||
// @public
|
||||
|
||||
@@ -43,13 +43,8 @@ export class TodoClient implements TodoApi {
|
||||
this.identityApi = options.identityApi;
|
||||
}
|
||||
|
||||
async listTodos({
|
||||
entity,
|
||||
offset,
|
||||
limit,
|
||||
orderBy,
|
||||
filters,
|
||||
}: TodoListOptions): Promise<TodoListResult> {
|
||||
async listTodos(options: TodoListOptions): Promise<TodoListResult> {
|
||||
const { entity, offset, limit, orderBy, filters } = options;
|
||||
const baseUrl = await this.discoveryApi.getBaseUrl('todo');
|
||||
const token = await this.identityApi.getIdToken();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user