Partial<T>
where T
has only optional members should not yield ... has no properties in common with type 'Partial<...>'
error
#20999
Labels
Working as Intended
The behavior described is the intended behavior; this is not a bug
tsc v2.6.2
Here's an example from jcormont/documentdb-typescript, Collection.d.ts in attempting to support this new ttl field:
If I opt NOT to include a
ttl
, I get[ts] Type 'MyDocument' has no properties in common with type 'Partial<DocumentResource>'.
I can work around it like this, but it is ugly:
The text was updated successfully, but these errors were encountered: