File: defaultDeclarationEmitDefaultImport.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (17 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
=== tests/cases/compiler/root.ts ===
export function getSomething(): Something { return null as any }
>getSomething : Symbol(getSomething, Decl(root.ts, 0, 0))
>Something : Symbol(Something, Decl(root.ts, 0, 64))

export default class Something {}
>Something : Symbol(Something, Decl(root.ts, 0, 64))

=== tests/cases/compiler/main.ts ===
import Thing, { getSomething } from "./root";
>Thing : Symbol(Thing, Decl(main.ts, 0, 6))
>getSomething : Symbol(getSomething, Decl(main.ts, 0, 15))

export const instance = getSomething();
>instance : Symbol(instance, Decl(main.ts, 1, 12))
>getSomething : Symbol(getSomething, Decl(main.ts, 0, 15))