@kubb/ast 5.0.0-beta.91 → 5.0.0-beta.93
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 +0 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -25
- package/dist/index.js.map +1 -1
- package/dist/{types-D12-e8Av.d.ts → types-Dno_xT4x.d.ts} +2 -64
- package/dist/types.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -150,29 +150,6 @@ const schemaTypes = {
|
|
|
150
150
|
never: "never"
|
|
151
151
|
};
|
|
152
152
|
//#endregion
|
|
153
|
-
//#region src/defineDialect.ts
|
|
154
|
-
/**
|
|
155
|
-
* Types a {@link Dialect} for an adapter. Adds no runtime behavior and only pins the
|
|
156
|
-
* dialect's type for inference.
|
|
157
|
-
*
|
|
158
|
-
* @example
|
|
159
|
-
* ```ts
|
|
160
|
-
* export const oasDialect = defineDialect({
|
|
161
|
-
* name: 'oas',
|
|
162
|
-
* schema: {
|
|
163
|
-
* isNullable,
|
|
164
|
-
* isReference,
|
|
165
|
-
* isDiscriminator,
|
|
166
|
-
* isBinary: (schema) => schema.type === 'string' && schema.contentMediaType === 'application/octet-stream',
|
|
167
|
-
* resolveRef,
|
|
168
|
-
* },
|
|
169
|
-
* })
|
|
170
|
-
* ```
|
|
171
|
-
*/
|
|
172
|
-
function defineDialect(dialect) {
|
|
173
|
-
return dialect;
|
|
174
|
-
}
|
|
175
|
-
//#endregion
|
|
176
153
|
//#region src/guards.ts
|
|
177
154
|
/**
|
|
178
155
|
* Narrows a `SchemaNode` to the variant that matches `type`.
|
|
@@ -1874,7 +1851,6 @@ var exports_exports = /* @__PURE__ */ __exportAll({
|
|
|
1874
1851
|
containsCircularRef: () => containsCircularRef,
|
|
1875
1852
|
contentDef: () => contentDef,
|
|
1876
1853
|
createPrinter: () => createPrinter,
|
|
1877
|
-
defineDialect: () => defineDialect,
|
|
1878
1854
|
defineMacro: () => defineMacro,
|
|
1879
1855
|
defineNode: () => defineNode,
|
|
1880
1856
|
enumPropName: () => enumPropName,
|
|
@@ -1935,7 +1911,6 @@ exports.constDef = constDef;
|
|
|
1935
1911
|
exports.containsCircularRef = containsCircularRef;
|
|
1936
1912
|
exports.contentDef = contentDef;
|
|
1937
1913
|
exports.createPrinter = createPrinter;
|
|
1938
|
-
exports.defineDialect = defineDialect;
|
|
1939
1914
|
exports.defineMacro = defineMacro;
|
|
1940
1915
|
exports.defineNode = defineNode;
|
|
1941
1916
|
exports.enumPropName = enumPropName;
|