Skip to content

Commit

Permalink
Ban the Omit type
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 5, 2019
1 parent 1026821 commit 4fc48d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
}
}
],
Expand Down

0 comments on commit 4fc48d2

Please sign in to comment.