Skip to content

Commit ed8f366

Browse files
authored
export newFetch (#152)
1 parent 36dcdf5 commit ed8f366

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

examples/vite/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ document.querySelector<HTMLDivElement>("#app")!.innerHTML = `
1515
</div>
1616
`;
1717

18-
import { newFetch } from "@notainc/typed-api-spec/zod/validation";
18+
import { newFetch } from "@notainc/typed-api-spec/zod";
1919
const GITHUB_API_ORIGIN = "https://api.github.com";
2020

2121
const endpoint = `${GITHUB_API_ORIGIN}/repos/nota/typed-api-spec/topics`;

pkgs/typed-api-spec/package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,6 @@
116116
"require": "./dist/zod/index.js",
117117
"import": "./dist/zod/index.mjs"
118118
},
119-
"./zod/validation": {
120-
"types": "./dist/zod/validation.d.ts",
121-
"require": "./dist/zod/validation.js",
122-
"import": "./dist/zod/validation.mjs"
123-
},
124119
"./valibot": {
125120
"types": "./dist/valibot/index.d.ts",
126121
"require": "./dist/valibot/index.js",

pkgs/typed-api-spec/src/zod/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,5 @@ const toResult = <T, U>(
171171
return Result.error(res.error);
172172
}
173173
};
174+
175+
export * from "./validation";

0 commit comments

Comments
 (0)