// src/a.ts
import b from "@/b";
import bb from "@/b.js"; // <-- *.js extension
export type t = typeof b;
export type tt = typeof bb;
console.log(b, bb);
// cli
tsc && tsc-alias
// dist/a.d.ts
import b from "./b";
import bb from "./b.js"; // <-- relative path
export declare type t = typeof b;
export declare type tt = typeof bb;
// cli
tsc --emitDeclarationOnly && tsc-alias
// dist/a.d.ts
import b from "./b";
import bb from "@/b.js"; // <-- alias path
export declare type t = typeof b;
export declare type tt = typeof bb;