@openpkg-ts/sdk 0.35.0 → 0.36.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.
- package/dist/browser.d.ts +51 -4
- package/dist/browser.js +114 -1
- package/dist/index.d.ts +24 -10
- package/dist/index.js +495 -586
- package/dist/shared/{chunk-skapcfq1.js → chunk-hnajr1tb.js} +56 -14
- package/package.json +2 -2
package/dist/browser.d.ts
CHANGED
|
@@ -400,8 +400,12 @@ import { OpenPkg as OpenPkg8, SpecExport as SpecExport4, SpecMember as SpecMembe
|
|
|
400
400
|
interface FormatSchemaOptions {
|
|
401
401
|
/** Include package attribution for external types */
|
|
402
402
|
includePackage?: boolean;
|
|
403
|
-
/** Collapse unions with more than N members (default:
|
|
403
|
+
/** Collapse unions with more than N members (default: 5) */
|
|
404
404
|
collapseUnionThreshold?: number;
|
|
405
|
+
/** Max recursion depth before returning "..." (default: 3) */
|
|
406
|
+
maxDepth?: number;
|
|
407
|
+
/** @internal current recursion depth */
|
|
408
|
+
_depth?: number;
|
|
405
409
|
}
|
|
406
410
|
/**
|
|
407
411
|
* Format a schema to a human-readable type string.
|
|
@@ -606,7 +610,7 @@ declare function formatConditionalType(condType: SpecConditionalType): string;
|
|
|
606
610
|
* ```
|
|
607
611
|
*/
|
|
608
612
|
declare function formatMappedType(mappedType: SpecMappedType): string;
|
|
609
|
-
import { OpenPkg as OpenPkg9, SpecExport as SpecExport5, SpecExportKind as
|
|
613
|
+
import { OpenPkg as OpenPkg9, SpecExport as SpecExport5, SpecExportKind as SpecExportKind6 } from "@openpkg-ts/spec";
|
|
610
614
|
type Predicate = (exp: SpecExport5) => boolean;
|
|
611
615
|
/**
|
|
612
616
|
* Chainable query builder for filtering OpenPkg exports.
|
|
@@ -619,7 +623,7 @@ declare class QueryBuilder {
|
|
|
619
623
|
/**
|
|
620
624
|
* Filter by kind(s)
|
|
621
625
|
*/
|
|
622
|
-
byKind(...kinds:
|
|
626
|
+
byKind(...kinds: SpecExportKind6[]): this;
|
|
623
627
|
/**
|
|
624
628
|
* Filter by name (exact string or regex pattern)
|
|
625
629
|
*/
|
|
@@ -675,4 +679,47 @@ declare class QueryBuilder {
|
|
|
675
679
|
* Create a query builder for the given spec
|
|
676
680
|
*/
|
|
677
681
|
declare function query(spec: OpenPkg9): QueryBuilder;
|
|
678
|
-
|
|
682
|
+
import { OpenPkg as OpenPkg10, SpecExample, SpecExport as SpecExport6, SpecSchema as SpecSchema2, SpecSignatureParameter } from "@openpkg-ts/spec";
|
|
683
|
+
interface CodeExample {
|
|
684
|
+
/** Unique identifier */
|
|
685
|
+
id: string;
|
|
686
|
+
/** Display label for chip */
|
|
687
|
+
label: string;
|
|
688
|
+
/** Code content */
|
|
689
|
+
code: string;
|
|
690
|
+
/** Language for highlighting (e.g. 'ts', 'bash') */
|
|
691
|
+
language?: string;
|
|
692
|
+
}
|
|
693
|
+
interface Language {
|
|
694
|
+
/** Language identifier (e.g. "typescript", "python") */
|
|
695
|
+
id: string;
|
|
696
|
+
/** Display label (e.g. "TypeScript", "Python") */
|
|
697
|
+
label: string;
|
|
698
|
+
}
|
|
699
|
+
interface APIParameterSchema {
|
|
700
|
+
/** Type name */
|
|
701
|
+
type?: string;
|
|
702
|
+
/** Formatted type string */
|
|
703
|
+
typeString?: string;
|
|
704
|
+
/** Description */
|
|
705
|
+
description?: string;
|
|
706
|
+
/** Nested properties for object types */
|
|
707
|
+
properties?: Record<string, APIParameterSchema>;
|
|
708
|
+
/** Required property names */
|
|
709
|
+
required?: string[];
|
|
710
|
+
}
|
|
711
|
+
declare function getLangForHighlight(lang: string): string;
|
|
712
|
+
declare function getLanguageLabel(lang: string): string;
|
|
713
|
+
declare function specSchemaToAPISchema(schema: SpecSchema2 | undefined): APIParameterSchema | undefined;
|
|
714
|
+
declare function specParamToAPIParam(param: SpecSignatureParameter): {
|
|
715
|
+
name: string;
|
|
716
|
+
type: string;
|
|
717
|
+
required: boolean;
|
|
718
|
+
description?: string;
|
|
719
|
+
children?: APIParameterSchema;
|
|
720
|
+
};
|
|
721
|
+
/** Convert spec examples to CodeExample[] (Shape B: id/label/code/language) */
|
|
722
|
+
declare function specExamplesToCodeExamples(examples: (string | SpecExample)[] | undefined, defaultLang?: string): CodeExample[];
|
|
723
|
+
declare function getLanguagesFromExamples(examples: (string | SpecExample)[] | undefined): Language[];
|
|
724
|
+
declare function buildImportStatement(exp: SpecExport6, spec: OpenPkg10): string;
|
|
725
|
+
export { toSearchIndexJSON, toSearchIndex2 as toSearchIndex, toPagefindRecords2 as toPagefindRecords, toAlgoliaRecords2 as toAlgoliaRecords, specSchemaToAPISchema, specParamToAPIParam, specExamplesToCodeExamples, sortByName, resolveTypeRef, query, isProperty, isMethod, hasDeprecatedTag, groupByVisibility, getProperties, getMethods, getMemberBadges, getLanguagesFromExamples, getLanguageLabel, getLangForHighlight, getDeprecationMessage, formatTypeParameters, formatSchema, formatReturnType, formatParameters, formatMappedType, formatConditionalType, formatBadges, findMissingParamDocs, buildSignatureString, buildImportStatement, analyzeSpec, SpecMappedType, SpecDiagnostics, SpecConditionalType, SearchRecord, SearchOptions, SearchIndex, QueryBuilder, PagefindRecord, LoadOptions, Language, FormatSchemaOptions, DocsInstance, DiagnosticItem, CodeExample, AlgoliaRecord, APIParameterSchema };
|
package/dist/browser.js
CHANGED
|
@@ -25,12 +25,121 @@ import {
|
|
|
25
25
|
toPagefindRecords,
|
|
26
26
|
toSearchIndex,
|
|
27
27
|
toSearchIndexJSON
|
|
28
|
-
} from "./shared/chunk-
|
|
28
|
+
} from "./shared/chunk-hnajr1tb.js";
|
|
29
|
+
// src/core/spec-converters.ts
|
|
30
|
+
function getLangForHighlight(lang) {
|
|
31
|
+
const langMap = {
|
|
32
|
+
typescript: "ts",
|
|
33
|
+
javascript: "js",
|
|
34
|
+
ts: "ts",
|
|
35
|
+
js: "js",
|
|
36
|
+
tsx: "tsx",
|
|
37
|
+
jsx: "jsx",
|
|
38
|
+
bash: "bash",
|
|
39
|
+
shell: "bash",
|
|
40
|
+
json: "json",
|
|
41
|
+
python: "python",
|
|
42
|
+
go: "go",
|
|
43
|
+
rust: "rust"
|
|
44
|
+
};
|
|
45
|
+
return langMap[lang.toLowerCase()] || lang;
|
|
46
|
+
}
|
|
47
|
+
function getLanguageLabel(lang) {
|
|
48
|
+
const labels = {
|
|
49
|
+
typescript: "TypeScript",
|
|
50
|
+
javascript: "JavaScript",
|
|
51
|
+
ts: "TypeScript",
|
|
52
|
+
js: "JavaScript",
|
|
53
|
+
bash: "Bash",
|
|
54
|
+
json: "JSON",
|
|
55
|
+
python: "Python",
|
|
56
|
+
go: "Go",
|
|
57
|
+
rust: "Rust"
|
|
58
|
+
};
|
|
59
|
+
return labels[lang.toLowerCase()] || lang;
|
|
60
|
+
}
|
|
61
|
+
function specSchemaToAPISchema(schema) {
|
|
62
|
+
if (!schema || typeof schema !== "object")
|
|
63
|
+
return;
|
|
64
|
+
const s = schema;
|
|
65
|
+
const result = {};
|
|
66
|
+
result.type = formatSchema(schema);
|
|
67
|
+
result.typeString = result.type;
|
|
68
|
+
if (typeof s.description === "string") {
|
|
69
|
+
result.description = s.description;
|
|
70
|
+
}
|
|
71
|
+
if (s.type === "object" && s.properties && typeof s.properties === "object") {
|
|
72
|
+
result.properties = {};
|
|
73
|
+
for (const [key, value] of Object.entries(s.properties)) {
|
|
74
|
+
const nested = specSchemaToAPISchema(value);
|
|
75
|
+
if (nested)
|
|
76
|
+
result.properties[key] = nested;
|
|
77
|
+
}
|
|
78
|
+
if (Array.isArray(s.required)) {
|
|
79
|
+
result.required = s.required;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return result;
|
|
83
|
+
}
|
|
84
|
+
function specParamToAPIParam(param) {
|
|
85
|
+
const type = formatSchema(param.schema);
|
|
86
|
+
const children = specSchemaToAPISchema(param.schema);
|
|
87
|
+
const hasNestedProperties = children?.properties && Object.keys(children.properties).length > 0;
|
|
88
|
+
return {
|
|
89
|
+
name: param.name ?? "unknown",
|
|
90
|
+
type,
|
|
91
|
+
required: param.required !== false,
|
|
92
|
+
description: param.description,
|
|
93
|
+
children: hasNestedProperties ? children : undefined
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function specExamplesToCodeExamples(examples, defaultLang = "typescript") {
|
|
97
|
+
if (!examples?.length)
|
|
98
|
+
return [];
|
|
99
|
+
return examples.map((ex, i) => {
|
|
100
|
+
const lang = typeof ex === "string" ? defaultLang : ex.language || defaultLang;
|
|
101
|
+
const code = typeof ex === "string" ? ex : ex.code;
|
|
102
|
+
const label = typeof ex === "string" ? getLanguageLabel(lang) : ex.title || getLanguageLabel(lang);
|
|
103
|
+
return {
|
|
104
|
+
id: `example-${i}`,
|
|
105
|
+
label,
|
|
106
|
+
code,
|
|
107
|
+
language: getLangForHighlight(lang)
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
function getLanguagesFromExamples(examples) {
|
|
112
|
+
if (!examples?.length)
|
|
113
|
+
return [];
|
|
114
|
+
const seen = new Set;
|
|
115
|
+
const result = [];
|
|
116
|
+
for (const ex of examples) {
|
|
117
|
+
const lang = typeof ex === "string" ? "typescript" : ex.language || "typescript";
|
|
118
|
+
if (!seen.has(lang)) {
|
|
119
|
+
seen.add(lang);
|
|
120
|
+
result.push({ id: lang, label: getLanguageLabel(lang) });
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return result;
|
|
124
|
+
}
|
|
125
|
+
function buildImportStatement(exp, spec) {
|
|
126
|
+
const packageName = spec.meta?.name || "package";
|
|
127
|
+
const presentation = spec.extensions?.presentation?.[exp.id];
|
|
128
|
+
const importPath = presentation?.importPath || packageName;
|
|
129
|
+
const alias = presentation?.alias || exp.name;
|
|
130
|
+
if (exp.kind === "type" || exp.kind === "interface") {
|
|
131
|
+
return `import type { ${alias} } from '${importPath}'`;
|
|
132
|
+
}
|
|
133
|
+
return `import { ${alias} } from '${importPath}'`;
|
|
134
|
+
}
|
|
29
135
|
export {
|
|
30
136
|
toSearchIndexJSON,
|
|
31
137
|
toSearchIndex,
|
|
32
138
|
toPagefindRecords,
|
|
33
139
|
toAlgoliaRecords,
|
|
140
|
+
specSchemaToAPISchema,
|
|
141
|
+
specParamToAPIParam,
|
|
142
|
+
specExamplesToCodeExamples,
|
|
34
143
|
sortByName,
|
|
35
144
|
resolveTypeRef,
|
|
36
145
|
query,
|
|
@@ -41,6 +150,9 @@ export {
|
|
|
41
150
|
getProperties,
|
|
42
151
|
getMethods,
|
|
43
152
|
getMemberBadges,
|
|
153
|
+
getLanguagesFromExamples,
|
|
154
|
+
getLanguageLabel,
|
|
155
|
+
getLangForHighlight,
|
|
44
156
|
getDeprecationMessage,
|
|
45
157
|
formatTypeParameters,
|
|
46
158
|
formatSchema,
|
|
@@ -51,6 +163,7 @@ export {
|
|
|
51
163
|
formatBadges,
|
|
52
164
|
findMissingParamDocs,
|
|
53
165
|
buildSignatureString,
|
|
166
|
+
buildImportStatement,
|
|
54
167
|
analyzeSpec,
|
|
55
168
|
QueryBuilder
|
|
56
169
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -745,8 +745,12 @@ import { OpenPkg as OpenPkg9, SpecExport as SpecExport4, SpecMember as SpecMembe
|
|
|
745
745
|
interface FormatSchemaOptions {
|
|
746
746
|
/** Include package attribution for external types */
|
|
747
747
|
includePackage?: boolean;
|
|
748
|
-
/** Collapse unions with more than N members (default:
|
|
748
|
+
/** Collapse unions with more than N members (default: 5) */
|
|
749
749
|
collapseUnionThreshold?: number;
|
|
750
|
+
/** Max recursion depth before returning "..." (default: 3) */
|
|
751
|
+
maxDepth?: number;
|
|
752
|
+
/** @internal current recursion depth */
|
|
753
|
+
_depth?: number;
|
|
750
754
|
}
|
|
751
755
|
/**
|
|
752
756
|
* Format a schema to a human-readable type string.
|
|
@@ -951,7 +955,7 @@ declare function formatConditionalType(condType: SpecConditionalType): string;
|
|
|
951
955
|
* ```
|
|
952
956
|
*/
|
|
953
957
|
declare function formatMappedType(mappedType: SpecMappedType): string;
|
|
954
|
-
import { OpenPkg as OpenPkg10, SpecExport as SpecExport5, SpecExportKind as
|
|
958
|
+
import { OpenPkg as OpenPkg10, SpecExport as SpecExport5, SpecExportKind as SpecExportKind6 } from "@openpkg-ts/spec";
|
|
955
959
|
type Predicate = (exp: SpecExport5) => boolean;
|
|
956
960
|
/**
|
|
957
961
|
* Chainable query builder for filtering OpenPkg exports.
|
|
@@ -964,7 +968,7 @@ declare class QueryBuilder {
|
|
|
964
968
|
/**
|
|
965
969
|
* Filter by kind(s)
|
|
966
970
|
*/
|
|
967
|
-
byKind(...kinds:
|
|
971
|
+
byKind(...kinds: SpecExportKind6[]): this;
|
|
968
972
|
/**
|
|
969
973
|
* Filter by name (exact string or regex pattern)
|
|
970
974
|
*/
|
|
@@ -1043,10 +1047,10 @@ declare function toReactString(spec: OpenPkg11, options?: {
|
|
|
1043
1047
|
variant?: "full" | "index";
|
|
1044
1048
|
componentsPath?: string;
|
|
1045
1049
|
}): string;
|
|
1046
|
-
import { OpenPkg as OpenPkg12, SpecExportKind as
|
|
1050
|
+
import { OpenPkg as OpenPkg12, SpecExportKind as SpecExportKind7 } from "@openpkg-ts/spec";
|
|
1047
1051
|
type FilterCriteria = {
|
|
1048
1052
|
/** Filter by kinds */
|
|
1049
|
-
kinds?:
|
|
1053
|
+
kinds?: SpecExportKind7[];
|
|
1050
1054
|
/** Filter by names (exact match) */
|
|
1051
1055
|
names?: string[];
|
|
1052
1056
|
/** Filter by IDs */
|
|
@@ -1169,8 +1173,10 @@ interface SerializerContext {
|
|
|
1169
1173
|
resolveExternalTypes: boolean;
|
|
1170
1174
|
typeRegistry: TypeRegistry;
|
|
1171
1175
|
exportedIds: Set<string>;
|
|
1172
|
-
/**
|
|
1176
|
+
/** Stack-style recursion guard for buildSchemaInternal (add before recurse, delete after) */
|
|
1173
1177
|
visitedTypes: Set<ts.Type>;
|
|
1178
|
+
/** Permanent "already processed" set for registerReferencedTypes */
|
|
1179
|
+
registeredTypes: Set<ts.Type>;
|
|
1174
1180
|
/** Flag to indicate we're processing tuple elements - skip Array prototype methods */
|
|
1175
1181
|
inTupleElement?: boolean;
|
|
1176
1182
|
/** Include private/protected class members (default: false) */
|
|
@@ -1218,7 +1224,7 @@ declare function resolveExportTarget(symbol: ts3.Symbol, checker: ts3.TypeChecke
|
|
|
1218
1224
|
targetSymbol: ts3.Symbol;
|
|
1219
1225
|
isTypeOnly: boolean;
|
|
1220
1226
|
};
|
|
1221
|
-
import { SpecExample, SpecSource, SpecTag, SpecTypeParameter as SpecTypeParameter2 } from "@openpkg-ts/spec";
|
|
1227
|
+
import { SpecExample, SpecExportKind as SpecExportKind8, SpecSource, SpecTag, SpecTypeParameter as SpecTypeParameter2 } from "@openpkg-ts/spec";
|
|
1222
1228
|
import ts4 from "typescript";
|
|
1223
1229
|
declare function getJSDocComment(node: ts4.Node, symbol?: ts4.Symbol, checker?: ts4.TypeChecker): {
|
|
1224
1230
|
description?: string;
|
|
@@ -1248,6 +1254,8 @@ declare function isSymbolDeprecated(symbol: ts4.Symbol | undefined): {
|
|
|
1248
1254
|
deprecated: boolean;
|
|
1249
1255
|
reason?: string;
|
|
1250
1256
|
};
|
|
1257
|
+
/** Classify a declaration node into an kind */
|
|
1258
|
+
declare function getExportKind(declaration: ts4.Declaration, type: ts4.Type): SpecExportKind8;
|
|
1251
1259
|
/**
|
|
1252
1260
|
* Target version for JSON Schema generation.
|
|
1253
1261
|
* @see https://standardschema.dev/json-schema
|
|
@@ -1469,6 +1477,11 @@ declare class CacheManager<
|
|
|
1469
1477
|
*/
|
|
1470
1478
|
set(key: K, value: V): void;
|
|
1471
1479
|
/**
|
|
1480
|
+
* Get cached value or compute, cache, and return it.
|
|
1481
|
+
* Unlike has()+get(), this correctly updates LRU order in a single operation.
|
|
1482
|
+
*/
|
|
1483
|
+
getOrCompute(key: K, compute: () => V): V;
|
|
1484
|
+
/**
|
|
1472
1485
|
* Delete a specific key from the cache.
|
|
1473
1486
|
*/
|
|
1474
1487
|
delete(key: K): boolean;
|
|
@@ -1620,7 +1633,7 @@ import ts14 from "typescript";
|
|
|
1620
1633
|
declare function extractParameters(signature: ts14.Signature, ctx: SerializerContext): SpecSignatureParameter[];
|
|
1621
1634
|
/**
|
|
1622
1635
|
* Recursively register types referenced by a ts.Type.
|
|
1623
|
-
* Uses ctx.
|
|
1636
|
+
* Uses ctx.registeredTypes to prevent re-processing already-registered types.
|
|
1624
1637
|
*/
|
|
1625
1638
|
declare function registerReferencedTypes(type: ts14.Type, ctx: SerializerContext, depth?: number): void;
|
|
1626
1639
|
import { SpecSchema as SpecSchema2 } from "@openpkg-ts/spec";
|
|
@@ -1630,6 +1643,7 @@ import ts15 from "typescript";
|
|
|
1630
1643
|
* Used for types that have specific serialization formats.
|
|
1631
1644
|
*/
|
|
1632
1645
|
declare const BUILTIN_TYPE_SCHEMAS: Record<string, SpecSchema2>;
|
|
1646
|
+
declare const PRIMITIVES: Set<string>;
|
|
1633
1647
|
declare const ARRAY_PROTOTYPE_METHODS: Set<string>;
|
|
1634
1648
|
/**
|
|
1635
1649
|
* Check if a name is a primitive type
|
|
@@ -1662,7 +1676,7 @@ declare function ensureNonEmptySchema(schema: SpecSchema2, type: ts15.Type, chec
|
|
|
1662
1676
|
* Uses $ref for named types and typeArguments for generics.
|
|
1663
1677
|
* Guarantees non-empty schema output via ensureNonEmptySchema wrapper.
|
|
1664
1678
|
*/
|
|
1665
|
-
declare function buildSchema(type: ts15.Type, checker: ts15.TypeChecker, ctx?: SerializerContext
|
|
1679
|
+
declare function buildSchema(type: ts15.Type, checker: ts15.TypeChecker, ctx?: SerializerContext): SpecSchema2;
|
|
1666
1680
|
/**
|
|
1667
1681
|
* Check if a schema is a pure $ref (only has $ref property)
|
|
1668
1682
|
*/
|
|
@@ -1756,4 +1770,4 @@ declare function normalizeMembers(members: SpecMember3[], options?: NormalizeOpt
|
|
|
1756
1770
|
import ts16 from "typescript";
|
|
1757
1771
|
declare function isExported(node: ts16.Node): boolean;
|
|
1758
1772
|
declare function getNodeName(node: ts16.Node): string | undefined;
|
|
1759
|
-
export { zodAdapter, withDescription2 as withDescription, valibotAdapter, typeboxAdapter, toSearchIndexJSON, toSearchIndex2 as toSearchIndex, toReactString, toReact, toPagefindRecords2 as toPagefindRecords, toNavigation2 as toNavigation, toMarkdown2 as toMarkdown, toJSONString, toJSON2 as toJSON, toHTML2 as toHTML, toFumadocsMetaJSON, toDocusaurusSidebarJS, toAlgoliaRecords2 as toAlgoliaRecords, sortByName, serializeVariable, serializeTypeAlias, serializeInterface, serializeFunctionExport, serializeEnum, serializeClass, schemasAreEqual, schemaIsAny, resolveTypeRef, resolveExportTarget, resolveCompiledPath, registerReferencedTypes, registerAdapter, recommendSemverBump, query, normalizeType, normalizeSchema, normalizeMembers, normalizeExport, mergeConfig, loadSpec, loadConfig, listExports, isTypeReference, isTypeOnlyExport, isSymbolDeprecated, isStandardJSONSchema, isSchemaType, isPureRefSchema, isProperty, isPrimitiveName, isMethod, isExported, isBuiltinGeneric, isAnonymous, hasDeprecatedTag, groupByVisibility, getTypeOrigin, getSourceLocation, getProperties, getParamDescription, getNonNullableType, getNodeName, getMethods, getMemberBadges, getJSDocComment, getExport2 as getExport, getDeprecationMessage, toMarkdown2 as generateDocs, formatTypeParameters, formatSchema, formatReturnType, formatParameters, formatMappedType, formatConditionalType, formatBadges, findMissingParamDocs, findDiscriminatorProperty, findAdapter, filterSpec, extractTypeParameters, extractStandardSchemasFromTs, extractStandardSchemasFromProject, extractStandardSchemas, extractSpec, extractSchemaType, extractParameters, extract, exportToMarkdown, ensureNonEmptySchema, diffSpec2 as diffSpecs, diffSpec, detectTsRuntime, deduplicateSchemas, createProgram, createDocs, categorizeBreakingChanges, calculateNextVersion, buildSignatureString, buildSchema, arktypeAdapter, analyzeSpec, TypeRegistry, TypeReference2 as TypeReference, TsRuntime, StandardSchemaExtractionResult, StandardSchemaExtractionOutput, StandardJSONSchemaV1, StandardJSONSchemaTarget, StandardJSONSchemaOptions, SpecMappedType, SpecDiff, SpecDiagnostics, SpecConditionalType, SkippedExportDetail, SimplifiedSpec, SimplifiedSignature, SimplifiedReturn, SimplifiedParameter, SimplifiedMember, SimplifiedExport, SimplifiedExample, SerializerContext, SemverRecommendation, SemverBump, SearchRecord, SearchOptions, SearchIndex, SchemaExtractionResult, SchemaAdapter, ReactLayoutOptions, QueryBuilder, ProjectExtractionOutput, ProjectExtractionInfo, ProgramResult, ProgramOptions, PagefindRecord, OpenpkgConfig, NormalizeOptions, NavOptions, NavItem, NavGroup, NavFormat, MemberChangeInfo, MarkdownOptions, LoadOptions, ListExportsResult, ListExportsOptions, JSONSchema, JSONOptions, HTMLOptions, GroupBy, GetExportResult, GetExportOptions, GenericNav, FumadocsMetaItem, FumadocsMeta, FormatSchemaOptions, ForgottenExport, FilterResult, FilterCriteria, ExtractionWarningCode, ExtractionWarning, ExtractStandardSchemasOptions, ExtractResult, ExtractOptions, ExtractFromProjectOptions, ExternalsConfig, ExportVerification, ExportTracker, ExportMarkdownOptions, ExportItem, DocusaurusSidebarItem, DocusaurusSidebar, DocsInstance, DiagnosticItem, Diagnostic, CategorizedBreaking, CacheManagerOptions, CacheManager, CONFIG_FILENAME, BreakingSeverity, BUILTIN_TYPE_SCHEMAS, AlgoliaRecord, ARRAY_PROTOTYPE_METHODS };
|
|
1773
|
+
export { zodAdapter, withDescription2 as withDescription, valibotAdapter, typeboxAdapter, toSearchIndexJSON, toSearchIndex2 as toSearchIndex, toReactString, toReact, toPagefindRecords2 as toPagefindRecords, toNavigation2 as toNavigation, toMarkdown2 as toMarkdown, toJSONString, toJSON2 as toJSON, toHTML2 as toHTML, toFumadocsMetaJSON, toDocusaurusSidebarJS, toAlgoliaRecords2 as toAlgoliaRecords, sortByName, serializeVariable, serializeTypeAlias, serializeInterface, serializeFunctionExport, serializeEnum, serializeClass, schemasAreEqual, schemaIsAny, resolveTypeRef, resolveExportTarget, resolveCompiledPath, registerReferencedTypes, registerAdapter, recommendSemverBump, query, normalizeType, normalizeSchema, normalizeMembers, normalizeExport, mergeConfig, loadSpec, loadConfig, listExports, isTypeReference, isTypeOnlyExport, isSymbolDeprecated, isStandardJSONSchema, isSchemaType, isPureRefSchema, isProperty, isPrimitiveName, isMethod, isExported, isBuiltinGeneric, isAnonymous, hasDeprecatedTag, groupByVisibility, getTypeOrigin, getSourceLocation, getProperties, getParamDescription, getNonNullableType, getNodeName, getMethods, getMemberBadges, getJSDocComment, getExportKind, getExport2 as getExport, getDeprecationMessage, toMarkdown2 as generateDocs, formatTypeParameters, formatSchema, formatReturnType, formatParameters, formatMappedType, formatConditionalType, formatBadges, findMissingParamDocs, findDiscriminatorProperty, findAdapter, filterSpec, extractTypeParameters, extractStandardSchemasFromTs, extractStandardSchemasFromProject, extractStandardSchemas, extractSpec, extractSchemaType, extractParameters, extract, exportToMarkdown, ensureNonEmptySchema, diffSpec2 as diffSpecs, diffSpec, detectTsRuntime, deduplicateSchemas, createProgram, createDocs, categorizeBreakingChanges, calculateNextVersion, buildSignatureString, buildSchema, arktypeAdapter, analyzeSpec, TypeRegistry, TypeReference2 as TypeReference, TsRuntime, StandardSchemaExtractionResult, StandardSchemaExtractionOutput, StandardJSONSchemaV1, StandardJSONSchemaTarget, StandardJSONSchemaOptions, SpecMappedType, SpecDiff, SpecDiagnostics, SpecConditionalType, SkippedExportDetail, SimplifiedSpec, SimplifiedSignature, SimplifiedReturn, SimplifiedParameter, SimplifiedMember, SimplifiedExport, SimplifiedExample, SerializerContext, SemverRecommendation, SemverBump, SearchRecord, SearchOptions, SearchIndex, SchemaExtractionResult, SchemaAdapter, ReactLayoutOptions, QueryBuilder, ProjectExtractionOutput, ProjectExtractionInfo, ProgramResult, ProgramOptions, PagefindRecord, PRIMITIVES, OpenpkgConfig, NormalizeOptions, NavOptions, NavItem, NavGroup, NavFormat, MemberChangeInfo, MarkdownOptions, LoadOptions, ListExportsResult, ListExportsOptions, JSONSchema, JSONOptions, HTMLOptions, GroupBy, GetExportResult, GetExportOptions, GenericNav, FumadocsMetaItem, FumadocsMeta, FormatSchemaOptions, ForgottenExport, FilterResult, FilterCriteria, ExtractionWarningCode, ExtractionWarning, ExtractStandardSchemasOptions, ExtractResult, ExtractOptions, ExtractFromProjectOptions, ExternalsConfig, ExportVerification, ExportTracker, ExportMarkdownOptions, ExportItem, DocusaurusSidebarItem, DocusaurusSidebar, DocsInstance, DiagnosticItem, Diagnostic, CategorizedBreaking, CacheManagerOptions, CacheManager, CONFIG_FILENAME, BreakingSeverity, BUILTIN_TYPE_SCHEMAS, AlgoliaRecord, ARRAY_PROTOTYPE_METHODS };
|