Skip to content

Commit

Permalink
fix: add optional param in getTasks method
Browse files Browse the repository at this point in the history
  • Loading branch information
ronaldronson committed Jul 26, 2022
1 parent 3123f0a commit 9d95ef8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/types/entry.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface TaskInputData {
export interface TaskAPI {
getTask(id: string): Promise<Task>

getTasks(query: SearchQuery): Promise<CollectionResponse<Task>>
getTasks(query?: SearchQuery): Promise<CollectionResponse<Task>>

createTask(data: TaskInputData): Promise<Task>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,4 @@
"peerDependencies": {
"contentful-management": ">=7.30.0"
}
}
}

0 comments on commit 9d95ef8

Please sign in to comment.