From 83bbd4dcf2f92be6bb1e248d6d4535a7260e6873 Mon Sep 17 00:00:00 2001 From: Kane W Date: Fri, 5 Jul 2019 21:34:25 +0700 Subject: [PATCH] Ban the `Omit` type Reason: https://github.com/microsoft/TypeScript/issues/30825 --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index b42dd82..c34825f 100644 --- a/index.js +++ b/index.js @@ -66,8 +66,10 @@ module.exports = { any: { message: 'Use `unknown` instead.', fixWith: 'unknown' - } + }, // TODO: Enforce `undefined` over `null` here too? + + Omit: 'Prefer the `Except` type in the `type-fest` package instead as it\'s stricter.', } } ],