Commit 92a0b66
committed
docs(core): improve NonFunction type organization and documentation
Move NonFunction type definition above resolveOption function for better logical
flow and add comprehensive JSDoc documentation explaining its purpose in preventing
recursive type ambiguity in value-or-function patterns.
- Add JSDoc for NonFunction type explaining constraint rationale
- Move type definition before its usage for better code organization
- Update resolveOption JSDoc to clarify T is constrained to non-function types
- Improve code readability and developer understanding of type constraints1 parent c64a5ea commit 92a0b66
1 file changed
+17
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
81 | 97 | | |
82 | 98 | | |
83 | 99 | | |
84 | 100 | | |
85 | 101 | | |
86 | 102 | | |
87 | 103 | | |
88 | | - | |
| 104 | + | |
89 | 105 | | |
90 | 106 | | |
91 | 107 | | |
| |||
122 | 138 | | |
123 | 139 | | |
124 | 140 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 141 | | |
136 | 142 | | |
137 | 143 | | |
| |||
0 commit comments