Skip to content

Commit

Permalink
Fix typo (#985)
Browse files Browse the repository at this point in the history
* Fix typo

* Fix the tsconfig.json library name in the comment

Used TypeScript documentation as a source of truth: https://www.typescriptlang.org/tsconfig#lib
  • Loading branch information
ddrone committed Oct 22, 2022
1 parent 1394260 commit ba0a79a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/types-external.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ type PrimitiveType = number | string | boolean
type AtomicObject = Function | Promise<any> | Date | RegExp

/**
* If the lib "ES2105.collections" is not included in tsconfig.json,
* If the lib "ES2015.Collection" is not included in tsconfig.json,
* types like ReadonlyArray, WeakMap etc. fall back to `any` (specified nowhere)
* or `{}` (from the node types), in both cases entering an infite recursion in
* or `{}` (from the node types), in both cases entering an infinite recursion in
* pattern matching type mappings
* This type can be used to cast these types to `void` in these cases.
*/
Expand Down

0 comments on commit ba0a79a

Please sign in to comment.