@valbuild/core 0.89.0 → 0.91.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -124,7 +124,8 @@ export type InitSchema = {
|
|
|
124
124
|
* Define a key of.
|
|
125
125
|
*
|
|
126
126
|
* @example
|
|
127
|
-
*
|
|
127
|
+
* import otherVal from "./other.val"; // this must be a record
|
|
128
|
+
* const schema = s.keyOf(otherVal);
|
|
128
129
|
* export default c.define("/example.val.ts", schema, "test");
|
|
129
130
|
*
|
|
130
131
|
*/
|
|
@@ -165,7 +166,7 @@ export type InitSchema = {
|
|
|
165
166
|
*
|
|
166
167
|
* @example
|
|
167
168
|
* ```typescript
|
|
168
|
-
* const schema = s.route();
|
|
169
|
+
* const schema = s.route(); // use .include() and .exclude() to constrain the route paths
|
|
169
170
|
* export default c.define("/example.val.ts", schema, "/a-page-slug");
|
|
170
171
|
* ```
|
|
171
172
|
*/
|