hoeck / simple-runtypes

Small, efficient and extendable runtype library for Typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Omit does not work on intersections

falko-cs opened this issue · comments

[Node] ~/backend/node_modules/simple-runtypes/src/omit.ts:15
[Node]     throw new RuntypeUsageError(`expected a record runtype`)
[Node]           ^
[Node] Error: expected a record runtype
[Node]     at Object.omit (~/backend/node_modules/simple-runtypes/src/omit.ts:15:11)