Generation of Omit
in lex-cli types causes loss of type safety
#2952
Labels
bug
Something isn't working
Omit
in lex-cli types causes loss of type safety
#2952
Describe the bug
Methods like
create
that accept anInputSchema
lose their type safety and accept any object value.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Type errors should happen above. See playground.
Details
This is caused by the use of
Omit
on a type with an index signature. This is expected behaviour of typescript see microsoft/TypeScript#45367Additional context
The text was updated successfully, but these errors were encountered: