Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 4e12b19

Browse files
Change type declaration
Gretting is undefined?
1 parent 08f99cc commit 4e12b19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/declaration files/By Example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ greet(new MyGreeter());
166166
You can use a type alias to make a shorthand for a type:
167167

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

171171
declare function greet(g: GreetingLike): void;
172172
```

0 commit comments

Comments
 (0)