Skip to content

Commit 99ed0e5

Browse files
fix: findGlobalVersionByID id type (#14534)
Adjusts the `id` type on `findGlobalVersionByID` to be `number | string`, previously was `string`.
1 parent 2295c89 commit 99ed0e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/payload/src/globals/operations/local/findVersionByID.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export type Options<TSlug extends GlobalSlug> = {
3232
/**
3333
* The ID of the version to find.
3434
*/
35-
id: string
35+
id: number | string
3636
/**
3737
* Specify [locale](https://payloadcms.com/docs/configuration/localization) for any returned documents.
3838
*/

0 commit comments

Comments
 (0)