fynjs API
    Preparing search index...

    Function createTsMapper

    • Build a mapper from a resolved file: URL to its TypeScript source, or null to leave the URL alone.

      Resolution is the whole job. Once a .ts URL is handed back, node's own type stripping compiles it - which is why this package has no load hook and no transpiler dependency.

      Parameters

      Returns (url: string) => string