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

Commit 1265269

Browse files
authored
Merge pull request #486 from krzysiekpiasecki/master
Change type declaration
2 parents 9defd5b + 745ea61 commit 1265269

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)