Skip to content

Ignore Regions of code in compiler #829

Closed
@mbeckenbach

Description

@mbeckenbach

Sometimes i use minified script snippets like AppInsights (code snippet is generated by the azure portal), that creates a class in windows.whatever.

Typescript compiler then complains about unknown things on window.
Code would work great if the compiler did not complain.

It costs lots of time finding a workarround. So creating something simple like regions of code that the compiler should ignore and just copy would be cool. Could be some easy syntax like he IF DEBUG flags in C#.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions