Skip to content

Commit 4f81f81

Browse files
Update snapshots.
1 parent 03b1365 commit 4f81f81

File tree

20 files changed

+133
-133
lines changed

20 files changed

+133
-133
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export function a(): string {
22
// ^ definition @example/a 1.0.0 src/`index.ts`/a().
3-
// documentation ```ts\n() => string\n```
3+
// documentation ```ts\nfunction a(): string\n```
44
return ''
55
}
66

snapshots/output/multi-project/packages/b/src/b.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
export function b() {
55
// ^ definition @example/b 1.0.0 src/`b.ts`/b().
6-
// documentation ```ts\n() => string\n```
6+
// documentation ```ts\nfunction b(): string\n```
77
return a()
88
// ^ reference @example/a 1.0.0 src/`index.ts`/a().
99
}

snapshots/output/pure-js/src/main.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
function fib(n) {
22
// ^^^ definition pure-js 1.0.0 src/`main.js`/fib().
3-
// documentation ```ts\n(n: any) => any\n```
3+
// documentation ```ts\nfunction fib(n: any): any\n```
44
// ^ definition pure-js 1.0.0 src/`main.js`/fib().(n)
5-
// documentation ```ts\nany\n```
5+
// documentation ```ts\n(parameter) n: any\n```
66
if (n <= 1) {
77
// ^ reference pure-js 1.0.0 src/`main.js`/fib().(n)
88
return 0
@@ -16,9 +16,9 @@
1616

1717
function print_fib(a) {
1818
// ^^^^^^^^^ definition pure-js 1.0.0 src/`main.js`/print_fib().
19-
// documentation ```ts\n(a: any) => void\n```
19+
// documentation ```ts\nfunction print_fib(a: any): void\n```
2020
// ^ definition pure-js 1.0.0 src/`main.js`/print_fib().(a)
21-
// documentation ```ts\nany\n```
21+
// documentation ```ts\n(parameter) a: any\n```
2222
console.log(fib(a))
2323
// ^^^^^^^ reference typescript 4.6.2 lib/`lib.dom.d.ts`/console.
2424
// ^^^^^^^ reference @types/node 17.0.14 `globals.d.ts`/console.
@@ -32,64 +32,64 @@
3232

3333
var y = 'Hello'
3434
// ^ definition pure-js 1.0.0 src/`main.js`/y.
35-
// documentation ```ts\nstring\n```
35+
// documentation ```ts\nvar y: string\n```
3636
function capture() {
3737
// ^^^^^^^ definition pure-js 1.0.0 src/`main.js`/capture().
38-
// documentation ```ts\n() => string\n```
38+
// documentation ```ts\nfunction capture(): string\n```
3939
return y
4040
// ^ reference pure-js 1.0.0 src/`main.js`/y.
4141
}
4242
const capture_lambda = () => {
4343
// ^^^^^^^^^^^^^^ definition pure-js 1.0.0 src/`main.js`/capture_lambda.
44-
// documentation ```ts\n() => string\n```
44+
// documentation ```ts\nvar capture_lambda: () => string\n```
4545
return y
4646
// ^ reference pure-js 1.0.0 src/`main.js`/y.
4747
}
4848

4949
for (var i = 0; i <= 10; i++) {}
5050
// ^ definition local 2
51-
// documentation ```ts\nnumber\n```
51+
// documentation ```ts\nvar i: number\n```
5252
// ^ reference local 2
5353
// ^ reference local 2
5454

5555
for (const x of [1, 2, 3]) {
5656
// ^ definition local 5
57-
// documentation ```ts\nnumber\n```
57+
// documentation ```ts\nvar x: number\n```
5858
}
5959

6060
var a = 0
6161
// ^ definition pure-js 1.0.0 src/`main.js`/a.
62-
// documentation ```ts\nnumber\n```
62+
// documentation ```ts\nvar a: number\n```
6363
var a = 1
6464
// ^ definition pure-js 1.0.0 src/`main.js`/a.
65-
// documentation ```ts\nnumber\n```
65+
// documentation ```ts\nvar a: number\n```
6666
print_fib(a)
6767
//^^^^^^^^^ reference pure-js 1.0.0 src/`main.js`/print_fib().
6868
// ^ reference pure-js 1.0.0 src/`main.js`/a.
6969
// ^ reference pure-js 1.0.0 src/`main.js`/a.
7070

7171
function forever() {
7272
// ^^^^^^^ definition pure-js 1.0.0 src/`main.js`/forever().
73-
// documentation ```ts\n() => any\n```
73+
// documentation ```ts\nfunction forever(): any\n```
7474
return forever()
7575
// ^^^^^^^ reference pure-js 1.0.0 src/`main.js`/forever().
7676
}
7777

7878
function use_before_def() {
7979
// ^^^^^^^^^^^^^^ definition pure-js 1.0.0 src/`main.js`/use_before_def().
80-
// documentation ```ts\n() => void\n```
80+
// documentation ```ts\nfunction use_before_def(): void\n```
8181
print_fib(n)
8282
// ^^^^^^^^^ reference pure-js 1.0.0 src/`main.js`/print_fib().
8383
// ^ reference local 8
8484
var n = 10
8585
// ^ definition local 8
86-
// documentation ```ts\nnumber\n```
86+
// documentation ```ts\nvar n: number\n```
8787

8888
if (forever()) {
8989
// ^^^^^^^ reference pure-js 1.0.0 src/`main.js`/forever().
9090
var m = 10
9191
// ^ definition local 11
92-
// documentation ```ts\nnumber\n```
92+
// documentation ```ts\nvar m: number\n```
9393
}
9494
print_fib(m)
9595
// ^^^^^^^^^ reference pure-js 1.0.0 src/`main.js`/print_fib().
@@ -98,15 +98,15 @@
9898

9999
function var_function_scope() {
100100
// ^^^^^^^^^^^^^^^^^^ definition pure-js 1.0.0 src/`main.js`/var_function_scope().
101-
// documentation ```ts\n() => void\n```
101+
// documentation ```ts\nfunction var_function_scope(): void\n```
102102
var k = 0
103103
// ^ definition local 14
104-
// documentation ```ts\nnumber\n```
104+
// documentation ```ts\nvar k: number\n```
105105
if (forever()) {
106106
// ^^^^^^^ reference pure-js 1.0.0 src/`main.js`/forever().
107107
var k = 1
108108
// ^ definition local 14
109-
// documentation ```ts\nnumber\n```
109+
// documentation ```ts\nvar k: number\n```
110110
}
111111
print_fib(k)
112112
// ^^^^^^^^^ reference pure-js 1.0.0 src/`main.js`/print_fib().

snapshots/output/react/src/LoaderInput.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
/** Takes loading prop, input component as child */
55
interface Props {
66
// ^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/Props#
7-
// documentation ```ts\nProps\n```
7+
// documentation ```ts\ninterface Props\n```
88
// documentation Takes loading prop, input component as child
99
loading: boolean
1010
// ^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/Props#loading.
11-
// documentation ```ts\nboolean\n```
11+
// documentation ```ts\n(property) loading: boolean\n```
1212
children: React.ReactNode
1313
// ^^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/Props#children.
14-
// documentation ```ts\nReactNode\n```
14+
// documentation ```ts\n(property) children: ReactNode\n```
1515
// ^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/
1616
// ^^^^^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/ReactNode#
1717
}
1818

1919
export const LoaderInput: React.FunctionComponent<Props> = ({
2020
// ^^^^^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput.
21-
// documentation ```ts\nFunctionComponent<Props>\n```
21+
// documentation ```ts\nvar LoaderInput: FunctionComponent<Props>\n```
2222
// ^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/
2323
// ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/FunctionComponent#
2424
// ^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#
@@ -42,12 +42,12 @@
4242

4343
export const LoaderInput2: React.FunctionComponent<Props> = props => {
4444
// ^^^^^^^^^^^^ definition react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput2.
45-
// documentation ```ts\nFunctionComponent<Props>\n```
45+
// documentation ```ts\nvar LoaderInput2: FunctionComponent<Props>\n```
4646
// ^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/
4747
// ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/FunctionComponent#
4848
// ^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#
4949
// ^^^^^ definition local 6
50-
// documentation ```ts\nPropsWithChildren<Props>\n```
50+
// documentation ```ts\n(parameter) props: PropsWithChildren<Props>\n```
5151
return <LoaderInput loading={true} key="key" children={props.children} />
5252
// ^^^^^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/LoaderInput.
5353
// ^^^^^^^ reference react-example 1.0.0 src/`LoaderInput.tsx`/Props#loading.

snapshots/output/react/src/MyTSXElement.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
export interface MyProps {}
55
// ^^^^^^^ definition react-example 1.0.0 src/`MyTSXElement.tsx`/MyProps#
6-
// documentation ```ts\nMyProps\n```
6+
// documentation ```ts\ninterface MyProps\n```
77

88
export const MyTSXElement: React.FunctionComponent<MyProps> = ({}) => (<p></p>)
99
// ^^^^^^^^^^^^ definition react-example 1.0.0 src/`MyTSXElement.tsx`/MyTSXElement.
10-
// documentation ```ts\nFunctionComponent<MyProps>\n```
10+
// documentation ```ts\nvar MyTSXElement: FunctionComponent<MyProps>\n```
1111
// ^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/
1212
// ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/FunctionComponent#
1313
// ^^^^^^^ reference react-example 1.0.0 src/`MyTSXElement.tsx`/MyProps#

snapshots/output/react/src/UseMyTSXElement.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
export const _: React.FunctionComponent<MyProps> =
99
// ^ definition react-example 1.0.0 src/`UseMyTSXElement.tsx`/_.
10-
// documentation ```ts\nFunctionComponent<MyProps>\n```
10+
// documentation ```ts\nvar _: FunctionComponent<MyProps>\n```
1111
// ^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/
1212
// ^^^^^^^^^^^^^^^^^ reference @types/react 17.0.0 `index.d.ts`/React/FunctionComponent#
1313
// ^^^^^^^ reference react-example 1.0.0 src/`MyTSXElement.tsx`/MyProps#

snapshots/output/syntax/src/accessors.ts

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,81 @@
11
class C {
22
// ^ definition syntax 1.0.0 src/`accessors.ts`/C#
3-
// documentation ```ts\nC\n```
3+
// documentation ```ts\nclass C\n```
44
_length: number = 0
55
// ^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/C#_length.
6-
// documentation ```ts\nnumber\n```
6+
// documentation ```ts\n(property) _length: number\n```
77
get length(): number {
88
// ^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/C#`<get>length`().
9-
// documentation ```ts\nnumber\n```
9+
// documentation ```ts\nget length: number\n```
1010
return this._length
1111
// ^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/C#_length.
1212
}
1313
set length(value: number) {
1414
// ^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/C#`<get>length`().
15-
// documentation ```ts\nnumber\n```
15+
// documentation ```ts\nget length: number\n```
1616
// ^^^^^ definition syntax 1.0.0 src/`accessors.ts`/C#`<set>length`().(value)
17-
// documentation ```ts\nnumber\n```
17+
// documentation ```ts\n(parameter) value: number\n```
1818
this._length = value
1919
// ^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/C#_length.
2020
// ^^^^^ reference syntax 1.0.0 src/`accessors.ts`/C#`<set>length`().(value)
2121
}
2222

2323
_capacity: number = 0
2424
// ^^^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/C#_capacity.
25-
// documentation ```ts\nnumber\n```
25+
// documentation ```ts\n(property) _capacity: number\n```
2626
get capacity(): number {
2727
// ^^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/C#`<get>capacity`().
28-
// documentation ```ts\nnumber\n```
28+
// documentation ```ts\nget capacity: number\n```
2929
return this._capacity
3030
// ^^^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/C#_capacity.
3131
}
3232
}
3333

3434
export class D {
3535
// ^ definition syntax 1.0.0 src/`accessors.ts`/D#
36-
// documentation ```ts\nD\n```
36+
// documentation ```ts\nclass D\n```
3737
_length: number = 0
3838
// ^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#_length.
39-
// documentation ```ts\nnumber\n```
39+
// documentation ```ts\n(property) _length: number\n```
4040
public get length(): number {
4141
// ^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#`<get>length`().
42-
// documentation ```ts\nnumber\n```
42+
// documentation ```ts\nget length: number\n```
4343
return this._length
4444
// ^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#_length.
4545
}
4646
public set length(value: number) {
4747
// ^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#`<get>length`().
48-
// documentation ```ts\nnumber\n```
48+
// documentation ```ts\nget length: number\n```
4949
// ^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#`<set>length`().(value)
50-
// documentation ```ts\nnumber\n```
50+
// documentation ```ts\n(parameter) value: number\n```
5151
this._length = value
5252
// ^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#_length.
5353
// ^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#`<set>length`().(value)
5454
}
5555

5656
_capacity: number = 0
5757
// ^^^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#_capacity.
58-
// documentation ```ts\nnumber\n```
58+
// documentation ```ts\n(property) _capacity: number\n```
5959
public get capacity(): number {
6060
// ^^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#`<get>capacity`().
61-
// documentation ```ts\nnumber\n```
61+
// documentation ```ts\nget capacity: number\n```
6262
return this._capacity
6363
// ^^^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#_capacity.
6464
}
6565
private set capacity(value: number) {
6666
// ^^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#`<get>capacity`().
67-
// documentation ```ts\nnumber\n```
67+
// documentation ```ts\nget capacity: number\n```
6868
// ^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#`<set>capacity`().(value)
69-
// documentation ```ts\nnumber\n```
69+
// documentation ```ts\n(parameter) value: number\n```
7070
this._capacity = value
7171
// ^^^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#_capacity.
7272
// ^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#`<set>capacity`().(value)
7373
}
7474
public unsafeSetCapacity(value: number): void {
7575
// ^^^^^^^^^^^^^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#unsafeSetCapacity().
76-
// documentation ```ts\n(value: number) => void\n```
76+
// documentation ```ts\n(method) unsafeSetCapacity(value: number): void\n```
7777
// ^^^^^ definition syntax 1.0.0 src/`accessors.ts`/D#unsafeSetCapacity().(value)
78-
// documentation ```ts\nnumber\n```
78+
// documentation ```ts\n(parameter) value: number\n```
7979
this.capacity = value
8080
// ^^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#`<get>capacity`().
8181
// ^^^^^^^^ reference syntax 1.0.0 src/`accessors.ts`/D#`<set>capacity`().
@@ -85,16 +85,16 @@
8585

8686
function g(_: number): void {}
8787
// ^ definition syntax 1.0.0 src/`accessors.ts`/g().
88-
// documentation ```ts\n(_: number) => void\n```
88+
// documentation ```ts\nfunction g(_: number): void\n```
8989
// ^ definition syntax 1.0.0 src/`accessors.ts`/g().(_)
90-
// documentation ```ts\nnumber\n```
90+
// documentation ```ts\n(parameter) _: number\n```
9191

9292
function f() {
9393
// ^ definition syntax 1.0.0 src/`accessors.ts`/f().
94-
// documentation ```ts\n() => void\n```
94+
// documentation ```ts\nfunction f(): void\n```
9595
const c = new C()
9696
// ^ definition local 2
97-
// documentation ```ts\nC\n```
97+
// documentation ```ts\nvar c: C\n```
9898
// ^ reference syntax 1.0.0 src/`accessors.ts`/C#
9999
c.length = 10
100100
// ^ reference local 2
@@ -117,7 +117,7 @@
117117

118118
const d = new D()
119119
// ^ definition local 5
120-
// documentation ```ts\nD\n```
120+
// documentation ```ts\nvar d: D\n```
121121
// ^ reference syntax 1.0.0 src/`accessors.ts`/D#
122122
d.length = 0
123123
// ^ reference local 5

0 commit comments

Comments
 (0)