tsutils icon indicating copy to clipboard operation
tsutils copied to clipboard

isPropertyReadonlyInType fails for "interface J extends Readonly<I>"

Open iliubinskii opened this issue 3 years ago • 0 comments
trafficstars

Sample code:

interface I { x: string; }
interface J extends Readonly<I> {}

isPropertyReadonlyInType returns false for "x" property in J interface, but it is readonly because of "Readonly" conversion.

iliubinskii avatar Feb 18 '22 00:02 iliubinskii