diff --git a/.changeset/three-llamas-sin.md b/.changeset/three-llamas-sin.md index b2c1f5e..d774a42 100644 --- a/.changeset/three-llamas-sin.md +++ b/.changeset/three-llamas-sin.md @@ -4,7 +4,7 @@ Added `createOpenApiHttp(...)` to create a thin, type-safe wrapper around [MSW](https://mswjs.io/)'s `http` that uses -[openapi-ts](https://openapi-ts.pages.dev/introduction/) `paths``: +[openapi-ts](https://openapi-ts.pages.dev/introduction/) `paths`: ```ts import type { paths } from "./openapi-ts-definitions"; diff --git a/.eslintrc.json b/.eslintrc.json index d9ccc22..244b38b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -12,10 +12,10 @@ "@typescript-eslint/no-empty-interface": [ "error", { - // Often types are computed and expanded in Intellisense previews in editors, - // which can lead to verbose and heard to understand type signatures. - // Interface keep their name in previews, which can be used to clarify - // previews by using interfaces that just extend a type. + // Often types are computed and expanded in editor previews, + // which can lead to verbose and hard-to-understand type signatures. + // Interfaces keep their name in previews, which can be used to clarify + // previews by using interfaces that only extend a type. "allowSingleExtends": true } ] diff --git a/src/path-mapping.test.ts b/src/path-mapping.test.ts index 88a3e15..0acae00 100644 --- a/src/path-mapping.test.ts +++ b/src/path-mapping.test.ts @@ -14,13 +14,13 @@ describe(convertToColonPath, () => { expect(result).toBe("/users/:id"); }); - it("should convert all fragment in a path to colon convention", () => { + it("should convert all fragments in a path to colon convention", () => { const result = convertToColonPath("/users/{userId}/posts/{postIds}"); expect(result).toBe("/users/:userId/posts/:postIds"); }); - it("should append baseUrl to the path when provided", () => { + it("should append a baseUrl to the path when provided", () => { const noBaseUrl = convertToColonPath("/users"); const withBaseUrl = convertToColonPath("/users", "https://localhost:3000");