Fix zod imports with ast-grep namespace import rule
Applied ast-grep rule to convert named zod imports to namespace imports across the api-contract package for consistency. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { oc } from "@orpc/contract";
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
import {
|
||||
adminAddSiteInputSchema,
|
||||
adminCreateOrgInputSchema,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
import { emailSchema, slugSchema } from "./common.js";
|
||||
import { orgRoleSchema } from "./org.js";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
import { emailSchema } from "./common.js";
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
isValidPhoneNumber,
|
||||
parsePhoneNumberWithError,
|
||||
} from "libphonenumber-js";
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
|
||||
/**
|
||||
* Email schema - validates email format and transforms to lowercase
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
import { emailSchema, slugSchema } from "./common.js";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { z } from "zod";
|
||||
import * as z from "zod";
|
||||
import { phoneSchema } from "./common.js";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
{
|
||||
"extends": "@macalinao/tsconfig/tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./src",
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"isolatedDeclarations": false
|
||||
},
|
||||
"include": ["src/**/*"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user