Ts-toolbelt: O.Optional removes non optional properties

Created on 31 Jul 2020  路  2Comments  路  Source: millsp/ts-toolbelt

I think this is something new since the latest version

type AAA = O.Optional<
{
  values: number[],
  optValues: number[]
},
"optValues"
>

this only yields optValues?: number[] | undefined; and removes values

bug

Most helpful comment

And another bug is gone, thank you!

All 2 comments

Thank you, I'm looking into it.

And another bug is gone, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mesqueeb picture mesqueeb  路  5Comments

dsernst picture dsernst  路  5Comments

xaviergonz picture xaviergonz  路  3Comments

katedoctor picture katedoctor  路  6Comments

delucis picture delucis  路  3Comments