Single-grammar variant of typescript.rs — JS handles .jsx via the same LanguageFn. No interface/type/enum arms; otherwise identical mapping + workspace-path prefix via module_path_for_tsjs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
10 lines
250 B
JavaScript
10 lines
250 B
JavaScript
// sample.js
|
|
import { x } from "./other";
|
|
const ANSWER = 42;
|
|
export function add(a, b) { return a + b; }
|
|
export class Retriever {
|
|
search(q) { return []; }
|
|
static create() { return new Retriever(); }
|
|
}
|
|
export default function () { return 1; }
|