UNPKG

198 BTypeScriptView Raw
1export type IsEqualConsideringWritability<OriginalType, WritableType> = (<Type>() => Type extends OriginalType
2 ? 1
3 : 2) extends <Type>() => Type extends WritableType ? 1 : 2
4 ? true
5 : false;