We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96bc9e1 commit ca0de3aCopy full SHA for ca0de3a
src/ContractError.ts
@@ -97,8 +97,9 @@ export class ContractError extends Error {
97
})
98
}
99
100
- override readonly name!: string
101
- override readonly message!: string
+ /* TODO: We should be able to tell TS that in this hierarchy `name` and `message` are read-only, but we cannot? Saying
+ it here introduces an own property, while we want to use the property from the prototype. Note that the value
102
+ of `name` and `message` can be changed in the prototypes of subclasses. */
103
readonly rawStack!: string
104
override readonly stack: string
105
0 commit comments