Skip to content

Commit

Permalink
export newFetch (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpppk authored Jan 2, 2025
1 parent 36dcdf5 commit ed8f366
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/vite/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ document.querySelector<HTMLDivElement>("#app")!.innerHTML = `
</div>
`;

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

const endpoint = `${GITHUB_API_ORIGIN}/repos/nota/typed-api-spec/topics`;
Expand Down
5 changes: 0 additions & 5 deletions pkgs/typed-api-spec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@
"require": "./dist/zod/index.js",
"import": "./dist/zod/index.mjs"
},
"./zod/validation": {
"types": "./dist/zod/validation.d.ts",
"require": "./dist/zod/validation.js",
"import": "./dist/zod/validation.mjs"
},
"./valibot": {
"types": "./dist/valibot/index.d.ts",
"require": "./dist/valibot/index.js",
Expand Down
2 changes: 2 additions & 0 deletions pkgs/typed-api-spec/src/zod/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,5 @@ const toResult = <T, U>(
return Result.error(res.error);
}
};

export * from "./validation";

0 comments on commit ed8f366

Please sign in to comment.