mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-07-06 15:24:36 -05:00
Merge pull request #124 from MartynJones87/master
Fix typo
@@ -114,7 +114,7 @@ TypeScript 2.3 adds support for declaring defaults for generic type parameters.
|
||||
|
||||
#### Example
|
||||
|
||||
Consider a function that creates a new `HTMLElement`, calling it with no arguments generates an `Div`; you can optionally pass a list of children as well. Previously you would have to define it as:
|
||||
Consider a function that creates a new `HTMLElement`, calling it with no arguments generates a `Div`; you can optionally pass a list of children as well. Previously you would have to define it as:
|
||||
|
||||
```ts
|
||||
declare function create(): Container<HTMLDivElement, HTMLDivElement[]>;
|
||||
|
||||
Reference in New Issue
Block a user