dsherret / dsherret/conditional-type-checks
IsExact does not handle `readonly` modifier
Open
- Dominant language
- TypeScript
- Stars
- 450
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
`IsExact` returns `true` when the only difference between two interfaces is the `readonly` modifier.
```ts
interface A {
value: string;
}
interface B {
readonly value: string;
}
assert>(false); // fails the compiler because `IsExact` returns `true`
```
I consider it as a bug.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.