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/architecture/modules/consumption.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,24 +71,24 @@ For modules that are internal to a library (i.e., must be explicitly exposed for
71
71
Consider the import of a hybrid internal module from one of its peers:
72
72
73
73
```typescript
74
-
// @/library/Attempt/Fresh/that.ts
74
+
// @/library/Range/definition.declared.ts
75
75
76
76
import {
77
-
Attempt_Outcome,
78
-
typeProductOf,
79
-
typeCauseOf,
80
-
} from'../../Outcome';
77
+
Range_BoundContainment,
78
+
} from'./BoundContainment';
81
79
82
-
...
80
+
classRange {
81
+
...
82
+
}
83
83
84
84
export {
85
-
Attempt_Fresh_that,
85
+
Range,
86
86
};
87
87
```
88
88
89
-
Here, a level-2 member called `Attempt_Outcome` is imported by name into the `Attempt/Fresh/that` module to define a level-3 member called `Attempt_Fresh_that`.
89
+
Here, a level-2 member called `Range_BoundContainment` is imported by name into the "/Range/definition.declared.ts" module to define a top-level member called `Range`.
90
90
91
-
- Both of these are internal modules that will be explicitly exposed as `Attempt.Outcome` and `Attempt.Fresh.that` to external consumers of the entire library.
91
+
- Both of these are internal modules that will be explicitly exposed as `Range` and `Range.BoundContainment` to external consumers of the entire library.
92
92
- Because of this, it's important for other internal consumers to acknowledge that these members are safe to expose to these external consumers (e.g. when used as parameter types or return types).
93
93
- Ergo, `default` imports/exports are avoided to help peer consumers avoid inadvertent aliases that may obfuscate how a member will actually look to an external consumer.
0 commit comments