Skip to content

Commit 3a57aa3

Browse files
authored
Change type declaration. PR486
1 parent 538be67 commit 3a57aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/handbook/declaration files/By Example.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ greet(new MyGreeter());
166166
你可以使用类型别名来定义类型的短名:
167167

168168
```ts
169-
type GreetingLike = string | (() => string) | Greeting;
169+
type GreetingLike = string | (() => string) | MyGreeter;
170170

171171
declare function greet(g: GreetingLike): void;
172172
```
@@ -272,4 +272,4 @@ declare class Greeter {
272272
273273
```
274274
275-
-->
275+
-->

0 commit comments

Comments
 (0)