From 31621674b6379f60bb5e723b7e1074b1c485a81e Mon Sep 17 00:00:00 2001 From: Tomer Moran <84818024+tmoran-stenoa@users.noreply.github.com> Date: Wed, 11 Dec 2024 23:31:39 -0500 Subject: [PATCH 1/2] (fix) set proper TS type to Verification resource on backend Set the type of the `status` property to `VerificationStatus` rather than just `string` --- packages/backend/src/api/resources/Verification.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/api/resources/Verification.ts b/packages/backend/src/api/resources/Verification.ts index 451556ecd2..2db3814563 100644 --- a/packages/backend/src/api/resources/Verification.ts +++ b/packages/backend/src/api/resources/Verification.ts @@ -1,10 +1,10 @@ -import type { OrganizationDomainVerificationJSON } from '@clerk/types'; +import type { OrganizationDomainVerificationJSON, VerificationStatus } from '@clerk/types'; import type { VerificationJSON } from './JSON'; export class Verification { constructor( - readonly status: string, + readonly status: VerificationStatus, readonly strategy: string, readonly externalVerificationRedirectURL: URL | null = null, readonly attempts: number | null = null, From 8e80b18540010c6113aca6fb053b7ad2af3bb73c Mon Sep 17 00:00:00 2001 From: Alex Carpenter Date: Mon, 16 Dec 2024 14:29:20 -0500 Subject: [PATCH 2/2] Create brave-rats-design.md --- .changeset/brave-rats-design.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/brave-rats-design.md diff --git a/.changeset/brave-rats-design.md b/.changeset/brave-rats-design.md new file mode 100644 index 0000000000..a7f62de4f6 --- /dev/null +++ b/.changeset/brave-rats-design.md @@ -0,0 +1,5 @@ +--- +"@clerk/backend": patch +--- + +Set proper TS type to Verification resource on backend