Skip to content

Commit

Permalink
Change type declaration. PR486
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongsp authored Jan 26, 2017
1 parent 538be67 commit 3a57aa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/handbook/declaration files/By Example.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ greet(new MyGreeter());
你可以使用类型别名来定义类型的短名:

```ts
type GreetingLike = string | (() => string) | Greeting;
type GreetingLike = string | (() => string) | MyGreeter;

declare function greet(g: GreetingLike): void;
```
Expand Down Expand Up @@ -272,4 +272,4 @@ declare class Greeter {
```
-->
-->

0 comments on commit 3a57aa3

Please sign in to comment.