fix(types): deny unknown attributes by default
requested to merge github/fork/blake-newman/blake.newman/deny-unknown-attributes-by-default into main
Created by: blake-newman
Deny unknown attributes by default; using type for ReservedProps
gave a default index signature which allowed uknown attributes.
Import expectType
in tsx type test as this was causing false error suppression.
What kind of change does this PR introduce? (check at least one)
-
Bugfix -
Feature -
Code style update -
Refactor -
Build-related changes -
Other, please describe:
Does this PR introduce a breaking change? (check one)
-
Yes -
No
I'm unsure why [name: string]: string
index type is being applied when using type
but using interface fixes it