Skip to content

Support Trusted Types from DOM lib #26

Description

@tosmolka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions