@kubb/plugin-ts 5.0.8 → 5.0.9
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/README.md +2 -2
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/docs/guides/customization.md +69 -0
- package/docs/options.md +280 -0
- package/{OVERVIEW.md → docs/overview.md} +20 -0
- package/kubb-extension.json +8 -2
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { n as __name, t as __exportAll } from "./rolldown-runtime-CthDji9g.js";
|
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { parserTs } from "@kubb/parser-ts";
|
|
4
4
|
import { File, jsxRenderer } from "kubb/jsx";
|
|
5
|
-
import { Resolver, addGenerator, assertPluginOption, ast, createResolver,
|
|
5
|
+
import { Resolver, addGenerator, assertPluginOption, ast, createResolver, defineExtension, defineGenerator, isStringType, setMacros, setResolver, syncSchemaRef } from "kubb/kit";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "kubb/jsx/jsx-runtime";
|
|
7
7
|
//#region ../../internals/utils/src/casing.ts
|
|
8
8
|
/**
|
|
@@ -1833,12 +1833,12 @@ const typeGenerator = defineGenerator({
|
|
|
1833
1833
|
//#endregion
|
|
1834
1834
|
//#region kubb-extension.json
|
|
1835
1835
|
var compatibility = {
|
|
1836
|
-
"kubb": ">=5.8.
|
|
1836
|
+
"kubb": ">=5.8.3",
|
|
1837
1837
|
"node": ">=22"
|
|
1838
1838
|
};
|
|
1839
1839
|
//#endregion
|
|
1840
1840
|
//#region package.json
|
|
1841
|
-
var version = "5.0.
|
|
1841
|
+
var version = "5.0.9";
|
|
1842
1842
|
//#endregion
|
|
1843
1843
|
//#region src/resolvers/resolverTs.ts
|
|
1844
1844
|
/**
|
|
@@ -1955,7 +1955,8 @@ function assertEnumLikeOptions({ prefix, options }) {
|
|
|
1955
1955
|
* })
|
|
1956
1956
|
* ```
|
|
1957
1957
|
*/
|
|
1958
|
-
const pluginTs =
|
|
1958
|
+
const pluginTs = defineExtension({
|
|
1959
|
+
kind: "plugin",
|
|
1959
1960
|
meta: {
|
|
1960
1961
|
name: pluginTsName,
|
|
1961
1962
|
version,
|