Skip to content

Commit 844c657

Browse files
authored
Update types of resources.search event (#744)
* feat: add locale property to resources.search event * fix: update resource.search event to match the type in functions-api repo
1 parent 22d52b2 commit 844c657

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/requests/typings/resources.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ export const RESOURCES_LOOKUP_EVENT = 'resources.lookup'
44
export type ResourcesSearchRequest = {
55
type: 'resources.search'
66
resourceType: string
7-
query: string
8-
limit?: number
7+
query?: string
8+
limit: number
9+
locale?: string
910
pages?: {
1011
nextCursor: string
1112
}
@@ -25,7 +26,7 @@ export type ResourcesLookupRequest<L extends Record<string, Scalar[]> = Record<s
2526
type: 'resources.lookup'
2627
lookupBy: L
2728
resourceType: string
28-
limit?: number
29+
limit: number
2930
pages?: {
3031
nextCursor: string
3132
}

0 commit comments

Comments
 (0)