Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Commit

Permalink
Remove Omit type (included in typescript)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabien0102 committed Oct 7, 2020
1 parent a9a0e73 commit 084d46f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/scripts/import-open-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -853,8 +853,6 @@ import { ${imports.join(", ")} } from "restful-react";`;
${restfulReactImports}${customImport ? `\n${customImport}\n` : ""}
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
const encodingFn = ${getEncodingFunction(pathParametersEncodingMode || "uriComponent")}
const encodingTagFactory = (encodingFn: typeof encodeURIComponent) => (
Expand Down
2 changes: 0 additions & 2 deletions src/scripts/tests/__snapshots__/import-open-api.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ exports[`scripts/import-open-api should parse correctly petstore-expanded.yaml 1
import React from \\"react\\";
import { Get, GetProps, useGet, UseGetProps, Mutate, MutateProps, useMutate, UseMutateProps } from \\"restful-react\\";
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
const encodingFn = encodeURIComponent
const encodingTagFactory = (encodingFn: typeof encodeURIComponent) => (
Expand Down

0 comments on commit 084d46f

Please sign in to comment.