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
<metacontent="Public type families exported from @stackpress/lib/types. ## Import ``ts import type { CallableMap, CallableNest, CallableSet, CookieOptions, ErrorResponse, Event, EventD" property="og:description">
8
+
<metacontent="Public type families exported from @stackpress/lib/types. ## Import ``ts import type { CallableMap, CallableNest, CallableSet, Constructor, CookieOptions, CookieParseOpti" property="og:description">
9
9
<metacontent="website" property="og:type">
10
10
<metacontent="summary" name="twitter:card">
11
11
<title>Types | @stackpress/lib</title>
@@ -59,7 +59,7 @@ <h2>Pages</h2>
59
59
<divclass="page-inner">
60
60
<pclass="eyebrow">API reference</p>
61
61
<h1>Types</h1>
62
-
<pclass="lede">Public type families exported from @stackpress/lib/types. ## Import ``ts import type { CallableMap, CallableNest, CallableSet, CookieOptions, ErrorResponse, Event, EventD</p>
62
+
<pclass="lede">Public type families exported from @stackpress/lib/types. ## Import ``ts import type { CallableMap, CallableNest, CallableSet, Constructor, CookieOptions, CookieParseOpti</p>
63
63
<divclass="article-card markdown-body">
64
64
<h1id="types">Types</h1>
65
65
@@ -72,33 +72,89 @@ <h2 id="import">Import</h2>
72
72
CallableMap,
73
73
CallableNest,
74
74
CallableSet,
75
+
Constructor,
75
76
CookieOptions,
77
+
CookieParseOptions,
78
+
CookieSerializeOptions,
79
+
Data,
80
+
DataMapFilter,
81
+
DataMapIterator,
82
+
DataSetFilter,
83
+
DataSetIterator,
76
84
ErrorResponse,
77
85
Event,
78
86
EventData,
87
+
EventExpression,
79
88
EventHook,
80
89
EventMap,
81
90
EventMatch,
91
+
EventName,
92
+
ExtendsType,
93
+
FileMeta,
94
+
FileRecursiveOption,
95
+
FileStat,
96
+
FileStream,
82
97
FileSystem,
98
+
Hash,
99
+
Headers,
100
+
Infer,
101
+
Item,
102
+
Key,
103
+
KeyPath,
104
+
LoaderResults,
105
+
Merge,
106
+
Method,
83
107
NestedObject,
108
+
PathObject,
109
+
PathValue,
110
+
Post,
111
+
Query,
112
+
Body,
113
+
CallSite,
114
+
CallableSession,
115
+
ResponseDispatcher,
116
+
RequestLoader,
84
117
RequestOptions,
118
+
Revision,
85
119
ResponseOptions,
86
120
ResponseStatus,
87
121
Route,
88
122
RouteAction,
89
123
RouteMap,
124
+
RouterArgs,
90
125
RouterAction,
126
+
RouterContext,
91
127
RouterMap,
128
+
Scalar,
129
+
ScalarInput,
130
+
Session,
131
+
SetInputResult,
132
+
SetResult,
92
133
StatusResponse,
93
134
SuccessResponse,
135
+
TaskAction,
136
+
TaskItem,
137
+
TaskResult,
138
+
TemplateHelper,
139
+
TemplateHelperOptions,
94
140
TemplateOptions,
141
+
TemplateResolver,
95
142
TerminalInputConfig,
96
-
TypeOf
143
+
TerminalInputContext,
144
+
TerminalInputTheme,
145
+
TerminalPromptState,
146
+
TerminalTTYInput,
147
+
TerminalTTYOutput,
148
+
Trace,
149
+
UnknownNest,
150
+
TypeOf,
151
+
ValueAt,
152
+
Widen
97
153
} from '@stackpress/lib/types';</code></pre>
98
154
99
155
<p>Use <code>@stackpress/lib/types</code>
100
-
when you want a dedicated import path for the public type surface. Many of these types are also re-exported from the root barrel, but the <code>types</code>
101
-
subpath is the clearest stable reference point.</p>
156
+
when you want a dedicated import path for the public type surface. The root barrel re-exports the most commonly consumed type names, but <code>@stackpress/lib/types</code>
157
+
is the stable import path for the full type module.</p>
<p>These types support the generic return values used by the data helpers. Most callers do not need to import them directly unless they are extending the library's typed path behavior.</p>
261
+
262
+
<divclass="table-wrap">
263
+
<table>
264
+
<tr>
265
+
<th>Type</th>
266
+
<th>Purpose</th>
267
+
268
+
</tr><tr>
269
+
<td><code>ExtendsType<T, U></code>
270
+
</td>
271
+
<td>Combines an override shape with the remaining keys from another type.</td>
272
+
273
+
</tr><tr>
274
+
<td><code>Constructor<T, U></code>
275
+
</td>
276
+
<td>Constructor contract with optional static fields.</td>
277
+
278
+
</tr><tr>
279
+
<td><code>KeyPath</code>
280
+
</td>
281
+
<td>Readonly array of nested path segments.</td>
282
+
283
+
</tr><tr>
284
+
<td><code>Infer</code>
285
+
</td>
286
+
<td>Internal marker used by callable generic defaults.</td>
287
+
288
+
</tr><tr>
289
+
<td><code>Widen<T></code>
290
+
</td>
291
+
<td>Widens literal values to their primitive or object shapes.</td>
292
+
293
+
</tr><tr>
294
+
<td><code>ValueAt<T, K></code>
295
+
</td>
296
+
<td>Resolves the value type at one path segment.</td>
297
+
298
+
</tr><tr>
299
+
<td><code>PathValue<T, P></code>
300
+
</td>
301
+
<td>Resolves the value type at a nested path.</td>
302
+
303
+
</tr><tr>
304
+
<td><code>PathObject<P, V></code>
305
+
</td>
306
+
<td>Builds an object shape from a path and value type.</td>
307
+
308
+
</tr><tr>
309
+
<td><code>Merge<A, B></code>
310
+
</td>
311
+
<td>Merges object shapes for nested writes.</td>
312
+
313
+
</tr><tr>
314
+
<td><code>SetResult<M, P, V></code>
315
+
</td>
316
+
<td>Result type for one path-based <code>set()</code>
317
+
operation.</td>
318
+
319
+
</tr><tr>
320
+
<td><code>SetInputResult<M, I></code>
321
+
</td>
322
+
<td>Result type for callable <code>set()</code>
323
+
input overloads.</td>
324
+
169
325
</tr>
170
326
</table>
171
327
</div>
@@ -536,7 +692,7 @@ <h2 id="related">Related</h2>
536
692
</article>
537
693
<asideclass="article-toc">
538
694
<strong>On this page</strong>
539
-
<ahref="#import" title="Import">Import</a><ahref="#data-types" title="Data Types">Data Types</a><ahref="#status-and-error-types" title="Status And Error Types">Status And Error Types</a><ahref="#queue-and-event-types" title="Queue And Event Types">Queue And Event Types</a><ahref="#router-types" title="Router Types">Router Types</a><ahref="#filesystem-types" title="Filesystem Types">Filesystem Types</a><ahref="#terminal-and-template-types" title="Terminal And Template Types">Terminal And Template Types</a><ahref="#related" title="Related">Related</a>
695
+
<ahref="#import" title="Import">Import</a><ahref="#data-types" title="Data Types">Data Types</a><ahref="#lower-level-utility-types" title="Lower-Level Utility Types">Lower-Level Utility Types</a><ahref="#status-and-error-types" title="Status And Error Types">Status And Error Types</a><ahref="#queue-and-event-types" title="Queue And Event Types">Queue And Event Types</a><ahref="#router-types" title="Router Types">Router Types</a><ahref="#filesystem-types" title="Filesystem Types">Filesystem Types</a><ahref="#terminal-and-template-types" title="Terminal And Template Types">Terminal And Template Types</a><ahref="#related" title="Related">Related</a>
0 commit comments