dsherret / dsherret/conditional-type-checks

IsExact does not handle `readonly` modifier

Open
#20 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.