@kubb/ast 5.0.0-beta.15 → 5.0.0-beta.17
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.
- package/dist/index.cjs +17 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +30 -1
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/factory.ts +14 -0
- package/src/index.ts +1 -0
- package/src/nodes/index.ts +1 -1
- package/src/nodes/root.ts +24 -0
- package/src/types.ts +1 -0
package/dist/index.cjs
CHANGED
|
@@ -1441,6 +1441,22 @@ function createInput(overrides = {}) {
|
|
|
1441
1441
|
};
|
|
1442
1442
|
}
|
|
1443
1443
|
/**
|
|
1444
|
+
* Creates an `InputStreamNode` from pre-built `AsyncIterable` sources.
|
|
1445
|
+
*
|
|
1446
|
+
* @example
|
|
1447
|
+
* ```ts
|
|
1448
|
+
* const node = createStreamInput(schemasIterable, operationsIterable, { title: 'My API' })
|
|
1449
|
+
* ```
|
|
1450
|
+
*/
|
|
1451
|
+
function createStreamInput(schemas, operations, meta) {
|
|
1452
|
+
return {
|
|
1453
|
+
kind: "Input",
|
|
1454
|
+
schemas,
|
|
1455
|
+
operations,
|
|
1456
|
+
meta
|
|
1457
|
+
};
|
|
1458
|
+
}
|
|
1459
|
+
/**
|
|
1444
1460
|
* Creates an `OutputNode` with a stable default for `files`.
|
|
1445
1461
|
*
|
|
1446
1462
|
* @example
|
|
@@ -2265,6 +2281,7 @@ exports.createProperty = createProperty;
|
|
|
2265
2281
|
exports.createResponse = createResponse;
|
|
2266
2282
|
exports.createSchema = createSchema;
|
|
2267
2283
|
exports.createSource = createSource;
|
|
2284
|
+
exports.createStreamInput = createStreamInput;
|
|
2268
2285
|
exports.createText = createText;
|
|
2269
2286
|
exports.createType = createType;
|
|
2270
2287
|
exports.definePrinter = definePrinter;
|