Skip to content

Commit 67f8fc3

Browse files
committed
Fix CI
1 parent c245360 commit 67f8fc3

File tree

7 files changed

+8
-13
lines changed

7 files changed

+8
-13
lines changed

examples/misc/express/valibot/express.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import express from "express";
22
import { asAsync } from "@notainc/typed-api-spec/express";
3-
import { ToHandlers, typed } from "@notainc/typed-api-spec/express/ss";
3+
import { ToHandlers, typed } from "@notainc/typed-api-spec/express";
44
import { pathMap } from "../../spec/valibot";
55

66
const emptyMiddleware = (

examples/misc/express/zod/express.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import express from "express";
22
import { pathMap } from "../../spec/zod";
3-
import { ToHandlers, typed } from "@notainc/typed-api-spec/express/ss";
3+
import { ToHandlers, typed } from "@notainc/typed-api-spec/express";
44
import { asAsync } from "@notainc/typed-api-spec/express";
55

66
const emptyMiddleware = (

examples/misc/simple/withValidation.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { withValidation } from "@notainc/typed-api-spec/fetch";
22
import { z } from "zod";
33
import { SpecValidatorError } from "@notainc/typed-api-spec/fetch";
4-
import { SSApiEndpoints } from "@notainc/typed-api-spec/ss";
4+
import { SSApiEndpoints } from "@notainc/typed-api-spec/core";
55

66
const GITHUB_API_ORIGIN = "https://api.github.com";
77

@@ -28,7 +28,7 @@ const main = async () => {
2828
const fetchWithV = withValidation(fetch, spec);
2929
const response = await fetchWithV(
3030
`${GITHUB_API_ORIGIN}/repos/nota/typed-api-spec/topics?page=1`,
31-
{ headers: { Accept: "application/vnd.github+json" } }
31+
{ headers: { Accept: "application/vnd.github+json" } },
3232
);
3333
if (!response.ok) {
3434
const { message } = await response.json();
@@ -44,7 +44,7 @@ const main = async () => {
4444
try {
4545
await fetchWithV(
4646
`${GITHUB_API_ORIGIN}/repos/nota/typed-api-spec/topics?page=1`,
47-
{ headers: { Accept: "application/vnd.github+json" } }
47+
{ headers: { Accept: "application/vnd.github+json" } },
4848
);
4949
} catch (e) {
5050
if (e instanceof SpecValidatorError) {

examples/misc/spec/valibot.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SSApiEndpoints, ToApiEndpoints } from "@notainc/typed-api-spec/ss";
1+
import { SSApiEndpoints, ToApiEndpoints } from "@notainc/typed-api-spec/core";
22
import * as v from "valibot";
33

44
const JsonHeader = v.object({

examples/misc/spec/zod.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SSApiEndpoints, ToApiEndpoints } from "@notainc/typed-api-spec/ss";
1+
import { SSApiEndpoints, ToApiEndpoints } from "@notainc/typed-api-spec/core";
22
import { z } from "zod";
33

44
const JsonHeader = z.union([

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

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ export * from "./validator/validate";
77
export * from "./validator/request";
88
export * from "./validator/response";
99
export * from "./openapi";
10+
export * from "./ss";

pkgs/typed-api-spec/src/express/zod.test.ts

-6
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import request from "supertest";
33
import express from "express";
44
import {
55
asAsync,
6-
RouterT,
76
ToHandlers,
87
typed,
98
ValidateLocals,
@@ -283,11 +282,6 @@ describe("typed", () => {
283282
},
284283
} satisfies SSApiEndpoints;
285284

286-
type R = RouterT<typeof pathMap, 200>;
287-
const r = {} as R;
288-
r.get("/users", (req, res) => {
289-
res.json([{ id: "1", name: "alice" }]);
290-
});
291285
it("ok", async () => {
292286
const app = newApp();
293287
const wApp = typed(pathMap, app);

0 commit comments

Comments
 (0)