We are still waiting on DOM lib to fully support Trusted Types (microsoft/TypeScript#30024). I was proposing a fix in microsoft/TypeScript-DOM-lib-generator#1246 but it might take a while to get this merged in and released (= Safari or Firefox start supporting TTs).
I ran tsec against codebase that was using this updated DOM lib and found out that tsec does not recognize these built-in TT types.
For one, the matcher expects the types to be defined in DefinitelyTyped (@types/trusted-types):
|
modulePathMatcher: '/node_modules/@types/trusted-types/', |
It would be great if we could add this support to tsec for people (like us) who are already using DOM lib with TTs in their code.
We are still waiting on DOM lib to fully support Trusted Types (microsoft/TypeScript#30024). I was proposing a fix in microsoft/TypeScript-DOM-lib-generator#1246 but it might take a while to get this merged in and released (= Safari or Firefox start supporting TTs).
I ran tsec against codebase that was using this updated DOM lib and found out that tsec does not recognize these built-in TT types.
For one, the matcher expects the types to be defined in DefinitelyTyped (@types/trusted-types):
tsec/src/third_party/tsetse/util/trusted_types_configuration.ts
Line 27 in a04e15a
It would be great if we could add this support to tsec for people (like us) who are already using DOM lib with TTs in their code.