Reference

stripTypeScriptWithOxc

Removes TypeScript syntax from a snippet with OXC while preserving JSX.

Signature

function stripTypeScriptWithOxc(source: string): string