tsutils
tsutils copied to clipboard
isPropertyReadonlyInType fails for "interface J extends Readonly<I>"
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.