-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Expand file tree
/
Copy pathdeclarationEmitJsPrivateClassStatics.types
More file actions
32 lines (26 loc) · 1.67 KB
/
declarationEmitJsPrivateClassStatics.types
File metadata and controls
32 lines (26 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//// [tests/cases/compiler/declarationEmitJsPrivateClassStatics.ts] ////
=== input.js ===
class Test {
>Test : Test
> : ^^^^
static #privateStaticProp = 'Not removed for JS declaration generation; is removed for TS.';
>#privateStaticProp : string
> : ^^^^^^
>'Not removed for JS declaration generation; is removed for TS.' : "Not removed for JS declaration generation; is removed for TS."
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
static #privateStaticFn() { return 'Not removed for JS declaration generation; is removed for TS.'; }
>#privateStaticFn : () => string
> : ^^^^^^^^^^^^
>'Not removed for JS declaration generation; is removed for TS.' : "Not removed for JS declaration generation; is removed for TS."
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#privateProp = 'This is removed in JS / TS declaration generation.';
>#privateProp : string
> : ^^^^^^
>'This is removed in JS / TS declaration generation.' : "This is removed in JS / TS declaration generation."
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#privateFn() { return 'This is removed in JS / TS declaration generation.'; }
>#privateFn : () => string
> : ^^^^^^^^^^^^
>'This is removed in JS / TS declaration generation.' : "This is removed in JS / TS declaration generation."
> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
}