From 7af216b4637d6e250f93148a3cf235ea6932aa9e Mon Sep 17 00:00:00 2001 From: Anton Gilgur Date: Tue, 10 May 2022 19:15:55 -0400 Subject: [PATCH] clean: remove partial.ts as this is built into TS (#322) - at least as of TS 2.1: https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype - we have a peerDep on TS >=2.4, so should definitely be compatible - and TS is on ~4.6 at this point, so that's _really_ old - remove the file and the declarations and declaration maps - don't rebuild as that's usually done as a separate commit --- dist/partial.d.ts | 4 ---- dist/partial.d.ts.map | 1 - src/index.ts | 1 - src/partial.ts | 1 - 4 files changed, 7 deletions(-) delete mode 100644 dist/partial.d.ts delete mode 100644 dist/partial.d.ts.map delete mode 100644 src/partial.ts diff --git a/dist/partial.d.ts b/dist/partial.d.ts deleted file mode 100644 index b99844e..0000000 --- a/dist/partial.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare type Partial = { - [P in keyof T]?: T[P]; -}; -//# sourceMappingURL=partial.d.ts.map \ No newline at end of file diff --git a/dist/partial.d.ts.map b/dist/partial.d.ts.map deleted file mode 100644 index 58913ba..0000000 --- a/dist/partial.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"partial.d.ts","sourceRoot":"","sources":["../src/partial.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,MAAM,OAAO,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC"} \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 433d977..57eb9f9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,7 +7,6 @@ import * as tsTypes from "typescript"; import * as resolve from "resolve"; import * as _ from "lodash"; import { IOptions } from "./ioptions"; -import { Partial } from "./partial"; import { parseTsConfig } from "./parse-tsconfig"; import { printDiagnostics } from "./print-diagnostics"; import { TSLIB, TSLIB_VIRTUAL, tslibSource, tslibVersion } from "./tslib"; diff --git a/src/partial.ts b/src/partial.ts deleted file mode 100644 index 23bd602..0000000 --- a/src/partial.ts +++ /dev/null @@ -1 +0,0 @@ -export declare type Partial = { [P in keyof T]?: T[P]; };