You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/project/external-modules.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,9 +44,10 @@ The following statement:
44
44
importfoo=require('foo');
45
45
```
46
46
47
-
actually imports *two* things:
48
-
* The type information from the imported file.
49
-
* Takes are runtime dependency on the `foo` module.
47
+
actually does *two* things:
48
+
49
+
* Imports the type information of the foo module.
50
+
* Specifies a runtime dependency on the foo module.
50
51
51
52
You can pick and choose so that only *the type information* is loaded and no runtime dependency occurs. Before continuing you might want to recap the [*declaration spaces*](../project/declarationspaces.md) section of the book.
0 commit comments