Skip to content

Commit 49bf886

Browse files
committed
Make declaration merging basic concepts clearer
1. A declaration creates object in *at least* one group. 2. Reword explanation of the groups themselves to match the table more closely.
1 parent d426944 commit 49bf886

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pages/Declaration Merging.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ Declaration merging is not limited to just two declarations, as any number of de
1313

1414
# Basic Concepts
1515

16-
In TypeScript, a declaration exists in one of three groups: namespace, type, or value.
17-
Declarations that create a namespace are accessed using a dotted notation when writing a type.
18-
Declarations that create a type do just that, create a type that is visible with the declared shape and bound to the given name.
19-
Lastly, declarations create a value are those that are visible in the output JavaScript (e.g. functions and variables).
16+
In TypeScript, a declaration creates objects in at least one of three groups: namespace, type, or value.
17+
Namespace-creating declarations create a namespace, which contains types that are accessed using a dotted notation.
18+
Type-creating declarations do just that, they create a type that is visible with the declared shape and bound to the given name.
19+
Lastly, value-creating declarations create values that are visible in the output JavaScript.
20+
Functions and variables are the simplest value-creating declarations, but namespaces and classes also create values.
2021

2122
| Declaration Type | Namespace | Type | Value |
2223
|------------------|:---------:|:----:|:-----:|

0 commit comments

Comments
 (0)