From e6c41459f56b3eb9a81fbc2b80734c79a50d3ba0 Mon Sep 17 00:00:00 2001 From: Gabriel Dugny Date: Sat, 14 Mar 2026 11:38:12 +0100 Subject: [PATCH] chore: Switch some zod imports to type only Signed-off-by: Gabriel Dugny --- .../src/lib/AuthSessionManager/AuthSessionStore.ts | 2 +- .../src/layout/ProxiedSignInPage/types.test.ts | 2 +- plugins/auth-node/report.api.md | 4 ++-- plugins/auth-node/src/sign-in/createSignInResolverFactory.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/core-app-api/src/lib/AuthSessionManager/AuthSessionStore.ts b/packages/core-app-api/src/lib/AuthSessionManager/AuthSessionStore.ts index d3be6748bf..fc3030a7a6 100644 --- a/packages/core-app-api/src/lib/AuthSessionManager/AuthSessionStore.ts +++ b/packages/core-app-api/src/lib/AuthSessionManager/AuthSessionStore.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { ZodSchema } from 'zod/v3'; +import type { ZodSchema } from 'zod/v3'; import { MutableSessionManager, SessionScopesFunc, diff --git a/packages/core-components/src/layout/ProxiedSignInPage/types.test.ts b/packages/core-components/src/layout/ProxiedSignInPage/types.test.ts index d3088e5f19..abc9cabac6 100644 --- a/packages/core-components/src/layout/ProxiedSignInPage/types.test.ts +++ b/packages/core-components/src/layout/ProxiedSignInPage/types.test.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { TypeOf } from 'zod/v3'; +import type { TypeOf } from 'zod/v3'; import { ProxiedSession, proxiedSessionSchema } from './types'; describe('types', () => { diff --git a/plugins/auth-node/report.api.md b/plugins/auth-node/report.api.md index 7cc68b44b3..23565164a4 100644 --- a/plugins/auth-node/report.api.md +++ b/plugins/auth-node/report.api.md @@ -16,8 +16,8 @@ import { Profile } from 'passport'; import { Request as Request_2 } from 'express'; import { Response as Response_2 } from 'express'; import { Strategy } from 'passport'; -import { ZodSchema } from 'zod/v3'; -import { ZodTypeDef } from 'zod/v3'; +import type { ZodSchema } from 'zod/v3'; +import type { ZodTypeDef } from 'zod/v3'; // @public (undocumented) export interface AuthOwnershipResolutionExtensionPoint { diff --git a/plugins/auth-node/src/sign-in/createSignInResolverFactory.ts b/plugins/auth-node/src/sign-in/createSignInResolverFactory.ts index e74be6dbb8..a74a1d4bfd 100644 --- a/plugins/auth-node/src/sign-in/createSignInResolverFactory.ts +++ b/plugins/auth-node/src/sign-in/createSignInResolverFactory.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { ZodSchema, ZodTypeDef } from 'zod/v3'; +import type { ZodSchema, ZodTypeDef } from 'zod/v3'; import { SignInResolver } from '../types'; import zodToJsonSchema from 'zod-to-json-schema'; import { JsonObject } from '@backstage/types';