@stainless-api/docs-ui 0.1.0-beta.73 → 0.1.0-beta.75
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/{chunk-BN_g-Awi.js → chunk-BYypO7fO.js} +3 -3
- package/dist/components/MaskedInput.d.ts +3 -3
- package/dist/components/MaskedInput.js +1 -1
- package/dist/components/breadcrumbs.d.ts +24 -1
- package/dist/components/breadcrumbs.js +62 -7
- package/dist/components/icons.d.ts +18 -13
- package/dist/components/icons.js +940 -2
- package/dist/components/index.d.ts +16 -14
- package/dist/components/index.js +72 -18
- package/dist/components/method.d.ts +58 -1
- package/dist/components/method.js +95 -8
- package/dist/components/overview.d.ts +38 -1
- package/dist/components/overview.js +137 -9
- package/dist/components/primitives.d.ts +104 -1
- package/dist/components/primitives.js +250 -6
- package/dist/components/properties.d.ts +53 -1
- package/dist/components/properties.js +138 -7
- package/dist/components/sdk-sidebar.d.ts +14 -1
- package/dist/components/sdk-sidebar.js +50 -8
- package/dist/components/sdk.d.ts +121 -1
- package/dist/components/sdk.js +405 -8
- package/dist/components/snippets.d.ts +70 -13
- package/dist/components/snippets.js +182 -7
- package/dist/components/stl-sidebar.d.ts +57 -1
- package/dist/components/stl-sidebar.js +105 -3
- package/dist/contexts/component-generics.d.ts +29 -1
- package/dist/contexts/component-generics.js +31 -1
- package/dist/contexts/component-types.d.ts +4 -15
- package/dist/contexts/component.d.ts +7 -17
- package/dist/contexts/component.js +22 -28
- package/dist/contexts/docs.d.ts +61 -1
- package/dist/contexts/docs.js +89 -1
- package/dist/contexts/index.d.ts +13 -14
- package/dist/contexts/index.js +44 -6
- package/dist/contexts/markdown.d.ts +21 -1
- package/dist/contexts/markdown.js +47 -2
- package/dist/contexts/navigation.d.ts +28 -1
- package/dist/contexts/navigation.js +22 -1
- package/dist/contexts/use-components.d.ts +1 -13
- package/dist/contexts/use-components.js +6 -2
- package/dist/{index-HDt5wRiR.d.ts → index-Cl6Gny0o.d.ts} +37 -2
- package/dist/index.d.ts +4 -14
- package/dist/index.js +7 -30
- package/dist/languages/cli.d.ts +38 -14
- package/dist/languages/cli.js +166 -20
- package/dist/languages/csharp.d.ts +42 -14
- package/dist/languages/csharp.js +283 -8
- package/dist/languages/go.d.ts +40 -14
- package/dist/languages/go.js +303 -8
- package/dist/languages/http.d.ts +46 -14
- package/dist/languages/http.js +390 -19
- package/dist/languages/index.d.ts +51 -14
- package/dist/languages/index.js +32 -28
- package/dist/languages/java.d.ts +43 -14
- package/dist/languages/java.js +403 -8
- package/dist/languages/php.d.ts +40 -0
- package/dist/languages/php.js +313 -0
- package/dist/languages/python.d.ts +40 -14
- package/dist/languages/python.js +269 -8
- package/dist/languages/ruby.d.ts +40 -14
- package/dist/languages/ruby.js +387 -8
- package/dist/languages/terraform.d.ts +48 -14
- package/dist/languages/terraform.js +243 -8
- package/dist/languages/typescript.d.ts +40 -14
- package/dist/languages/typescript.js +449 -8
- package/dist/markdown/index.d.ts +1 -2
- package/dist/markdown/index.js +1 -28
- package/dist/markdown/printer.d.ts +2 -2
- package/dist/markdown/printer.js +6 -30
- package/dist/markdown/utils.d.ts +3 -3
- package/dist/routing.d.ts +61 -2
- package/dist/routing.js +205 -2
- package/dist/spec.d.ts +2 -2
- package/dist/spec.js +2 -2
- package/dist/style.js +176 -1
- package/dist/use-strict-context-L0c8JKg4.js +16 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +53 -2
- package/package.json +3 -3
- package/dist/breadcrumbs-Dei_5sHd.d.ts +0 -25
- package/dist/breadcrumbs-oUp-6oJK.js +0 -63
- package/dist/cli-BX9ofVCR.js +0 -166
- package/dist/component-Dl5ZEHxB.js +0 -23
- package/dist/component-generics-C9ALAcZI.d.ts +0 -30
- package/dist/component-generics-POFirVVb.js +0 -45
- package/dist/components-DQPlXEwE.js +0 -72
- package/dist/contexts-_NNW5yqC.js +0 -44
- package/dist/csharp-sn5CJu9t.js +0 -283
- package/dist/docs-YgoQ3bzY.js +0 -81
- package/dist/docs-x-kfjRMc.d.ts +0 -66
- package/dist/go-BoaAVmP0.js +0 -303
- package/dist/http-Ccj1dOvE.js +0 -389
- package/dist/icons-BYKn5X8E.js +0 -885
- package/dist/index-OCM-LZIo.d.ts +0 -428
- package/dist/java-BiLRuLuD.js +0 -403
- package/dist/languages-COjc0Nwx.js +0 -30
- package/dist/markdown-BszOPZhh.d.ts +0 -22
- package/dist/markdown-Cq3XEhrR.js +0 -49
- package/dist/method-DjzVBzZe.js +0 -96
- package/dist/method-KkWyhvKa.d.ts +0 -59
- package/dist/navigation-BZjwfN2P.d.ts +0 -29
- package/dist/navigation-aoYZ_tl4.js +0 -24
- package/dist/overview-BNmMeDUE.d.ts +0 -39
- package/dist/overview-Clq5psZe.js +0 -138
- package/dist/primitives-B8OnSXRP.d.ts +0 -105
- package/dist/primitives-BBUs_flm.js +0 -250
- package/dist/properties-BhlRtWo4.d.ts +0 -54
- package/dist/properties-DQU0NBzb.js +0 -138
- package/dist/python-nqOBH7GS.js +0 -269
- package/dist/routing-GvhEMw6E.js +0 -205
- package/dist/routing-qJMPICGo.d.ts +0 -61
- package/dist/ruby-BBc8HdIt.js +0 -387
- package/dist/sdk-C8C6IRQp.d.ts +0 -122
- package/dist/sdk-DzCHhEoX.js +0 -405
- package/dist/sdk-sidebar-CkjSLggl.js +0 -50
- package/dist/sdk-sidebar-lgNmf-ns.d.ts +0 -15
- package/dist/snippets-CLpNVNlA.js +0 -181
- package/dist/stl-sidebar-8jF9cdnn.d.ts +0 -58
- package/dist/stl-sidebar-DC5UOJiT.js +0 -106
- package/dist/style-DJIYkFhO.js +0 -178
- package/dist/terraform-DVx2ea2h.js +0 -243
- package/dist/typescript-Cmk-jBBw.js +0 -449
- package/dist/use-components-BUz3GbO4.js +0 -7
- package/dist/utils-D6zJxUZ9.js +0 -54
package/dist/languages/go.js
CHANGED
|
@@ -1,9 +1,304 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
5
|
-
import "../
|
|
6
|
-
import "
|
|
7
|
-
import {
|
|
1
|
+
import { t as __exportAll } from "../chunk-BYypO7fO.js";
|
|
2
|
+
import "../use-strict-context-L0c8JKg4.js";
|
|
3
|
+
import { useLanguageComponents } from "../contexts/index.js";
|
|
4
|
+
import { useComponents } from "../contexts/use-components.js";
|
|
5
|
+
import style_default from "../style.js";
|
|
6
|
+
import * as React$1 from "react";
|
|
7
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
//#region src/languages/go.tsx
|
|
10
|
+
var go_exports = /* @__PURE__ */ __exportAll({
|
|
11
|
+
Declaration: () => Declaration,
|
|
12
|
+
MethodSignature: () => MethodSignature,
|
|
13
|
+
Property: () => Property,
|
|
14
|
+
Type: () => Type,
|
|
15
|
+
TypeName: () => TypeName
|
|
16
|
+
});
|
|
17
|
+
const ComplexTypes = {
|
|
18
|
+
GoTypeMap: "map",
|
|
19
|
+
GoTypeArray: "array"
|
|
20
|
+
};
|
|
21
|
+
const Keywords = {
|
|
22
|
+
GoTypeAny: "any",
|
|
23
|
+
GoTypeUnknown: "unknown",
|
|
24
|
+
GoTypeInt: "int64",
|
|
25
|
+
GoTypeFloat: "float64",
|
|
26
|
+
GoTypeBool: "bool",
|
|
27
|
+
GoTypeError: "error"
|
|
28
|
+
};
|
|
29
|
+
function isField(type) {
|
|
30
|
+
return type.kind === "GoTypeReference" && type.typeName === "param.Field";
|
|
31
|
+
}
|
|
32
|
+
function TypeName({ type }) {
|
|
33
|
+
const Lang = useLanguageComponents();
|
|
34
|
+
return isField(type) ? "field" : ComplexTypes[type.kind] ?? /* @__PURE__ */ jsx(Lang.Type, { type });
|
|
35
|
+
}
|
|
36
|
+
function Type({ type }) {
|
|
37
|
+
const Lang = useLanguageComponents();
|
|
38
|
+
const { Join, SDKReference } = useComponents();
|
|
39
|
+
switch (type.kind) {
|
|
40
|
+
case "GoTypeReference": {
|
|
41
|
+
const params = type.typeParameters?.map((param, key) => /* @__PURE__ */ jsx(Lang.Type, { type: param }, key));
|
|
42
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
43
|
+
className: style_default.Type,
|
|
44
|
+
children: [type.$ref ? /* @__PURE__ */ jsx(SDKReference, {
|
|
45
|
+
stainlessPath: type.$ref,
|
|
46
|
+
children: type.typeName
|
|
47
|
+
}) : type.typeName, params && params.length > 0 ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
48
|
+
/* @__PURE__ */ jsx("span", {
|
|
49
|
+
className: style_default.TypeBracket,
|
|
50
|
+
children: "["
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ jsx(Join, {
|
|
53
|
+
items: params,
|
|
54
|
+
limit: 3,
|
|
55
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
56
|
+
className: style_default.TextOperator,
|
|
57
|
+
children: ", "
|
|
58
|
+
})
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ jsx("span", {
|
|
61
|
+
className: style_default.TypeBracket,
|
|
62
|
+
children: "]"
|
|
63
|
+
})
|
|
64
|
+
] }) : null]
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
case "GoTypeAny":
|
|
68
|
+
case "GoTypeUnknown":
|
|
69
|
+
case "GoTypeInt":
|
|
70
|
+
case "GoTypeFloat":
|
|
71
|
+
case "GoTypeBool":
|
|
72
|
+
case "GoTypeError": return /* @__PURE__ */ jsx("span", {
|
|
73
|
+
className: style_default.Type,
|
|
74
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
75
|
+
className: style_default.TypeKeyword,
|
|
76
|
+
children: Keywords[type.kind]
|
|
77
|
+
})
|
|
78
|
+
});
|
|
79
|
+
case "GoTypeString": return /* @__PURE__ */ jsx("span", {
|
|
80
|
+
className: style_default.Type,
|
|
81
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
82
|
+
className: style_default.TypeString,
|
|
83
|
+
children: "string"
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
case "GoTypeArray": return /* @__PURE__ */ jsxs("span", {
|
|
87
|
+
className: style_default.Type,
|
|
88
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
89
|
+
className: style_default.TextOperator,
|
|
90
|
+
children: "[]"
|
|
91
|
+
}), /* @__PURE__ */ jsx(Lang.Type, { type: type.elementType })]
|
|
92
|
+
});
|
|
93
|
+
case "GoTypeStruct": return /* @__PURE__ */ jsx("span", {
|
|
94
|
+
className: style_default.Type,
|
|
95
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
96
|
+
className: style_default.TypeKeyword,
|
|
97
|
+
children: "struct{…}"
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
case "GoTypeInterface": return /* @__PURE__ */ jsx("span", {
|
|
101
|
+
className: style_default.Type,
|
|
102
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
103
|
+
className: style_default.TypeKeyword,
|
|
104
|
+
children: "interface{…}"
|
|
105
|
+
})
|
|
106
|
+
});
|
|
107
|
+
case "GoTypeMap": return /* @__PURE__ */ jsxs("span", {
|
|
108
|
+
className: style_default.Type,
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ jsx("span", {
|
|
111
|
+
className: style_default.TypeKeyword,
|
|
112
|
+
children: "map"
|
|
113
|
+
}),
|
|
114
|
+
/* @__PURE__ */ jsx("span", {
|
|
115
|
+
className: style_default.TypeBracket,
|
|
116
|
+
children: "["
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ jsx(Lang.Type, { type: type.indexType }),
|
|
119
|
+
/* @__PURE__ */ jsx("span", {
|
|
120
|
+
className: style_default.TextPunctuation,
|
|
121
|
+
children: ","
|
|
122
|
+
}),
|
|
123
|
+
" ",
|
|
124
|
+
/* @__PURE__ */ jsx(Lang.Type, { type: type.itemType }),
|
|
125
|
+
/* @__PURE__ */ jsx("span", {
|
|
126
|
+
className: style_default.TypeBracket,
|
|
127
|
+
children: "]"
|
|
128
|
+
})
|
|
129
|
+
]
|
|
130
|
+
});
|
|
131
|
+
case "GoTypePointer": return /* @__PURE__ */ jsxs("span", {
|
|
132
|
+
className: style_default.Type,
|
|
133
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
134
|
+
className: style_default.TextOperator,
|
|
135
|
+
children: "*"
|
|
136
|
+
}), /* @__PURE__ */ jsx(Lang.Type, { type: type.inner })]
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
function MethodSignature({ decl }) {
|
|
141
|
+
const Lang = useLanguageComponents();
|
|
142
|
+
const { Join } = useComponents();
|
|
143
|
+
const params = decl.parameters.map((param, i) => /* @__PURE__ */ jsxs(React$1.Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
144
|
+
className: style_default.TextIdentifier,
|
|
145
|
+
children: param.ident
|
|
146
|
+
}), param.optional && /* @__PURE__ */ jsx("span", {
|
|
147
|
+
className: style_default.TextPunctuation,
|
|
148
|
+
children: "?"
|
|
149
|
+
})] }, i));
|
|
150
|
+
const returns = decl.returnType.map((t, key) => /* @__PURE__ */ jsx(Lang.Type, { type: t }, key));
|
|
151
|
+
return /* @__PURE__ */ jsx("div", {
|
|
152
|
+
className: style_default.MethodSignature,
|
|
153
|
+
children: /* @__PURE__ */ jsxs("span", {
|
|
154
|
+
className: style_default.SignatureTitle,
|
|
155
|
+
children: [
|
|
156
|
+
decl.async && /* @__PURE__ */ jsx("span", {
|
|
157
|
+
className: style_default.TextKeyword,
|
|
158
|
+
children: "async "
|
|
159
|
+
}),
|
|
160
|
+
decl.qualified && /* @__PURE__ */ jsx("span", {
|
|
161
|
+
className: style_default.SignatureQualified,
|
|
162
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
163
|
+
className: style_default.TextIdentifier,
|
|
164
|
+
children: decl.qualified?.slice(0, -decl.ident.length)
|
|
165
|
+
})
|
|
166
|
+
}),
|
|
167
|
+
decl.kind === "GoDeclFunction" && /* @__PURE__ */ jsx("span", {
|
|
168
|
+
className: style_default.SignatureName,
|
|
169
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
170
|
+
className: style_default.TextIdentifier,
|
|
171
|
+
children: decl.ident
|
|
172
|
+
})
|
|
173
|
+
}),
|
|
174
|
+
/* @__PURE__ */ jsxs("span", {
|
|
175
|
+
className: style_default.MethodSignature,
|
|
176
|
+
children: [
|
|
177
|
+
/* @__PURE__ */ jsx("span", {
|
|
178
|
+
className: style_default.SignatureParen,
|
|
179
|
+
children: "("
|
|
180
|
+
}),
|
|
181
|
+
/* @__PURE__ */ jsx("span", {
|
|
182
|
+
className: style_default.SignatureParams,
|
|
183
|
+
children: /* @__PURE__ */ jsx(Join, {
|
|
184
|
+
items: params,
|
|
185
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
186
|
+
className: style_default.TextOperator,
|
|
187
|
+
children: ", "
|
|
188
|
+
})
|
|
189
|
+
})
|
|
190
|
+
}),
|
|
191
|
+
/* @__PURE__ */ jsxs("span", {
|
|
192
|
+
className: style_default.SignatureParen,
|
|
193
|
+
children: [")", " "]
|
|
194
|
+
}),
|
|
195
|
+
decl.returnType.length === 1 ? returns : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
196
|
+
/* @__PURE__ */ jsx("span", {
|
|
197
|
+
className: style_default.SignatureParen,
|
|
198
|
+
children: "("
|
|
199
|
+
}),
|
|
200
|
+
/* @__PURE__ */ jsx(Join, {
|
|
201
|
+
items: returns,
|
|
202
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
203
|
+
className: style_default.TextOperator,
|
|
204
|
+
children: ", "
|
|
205
|
+
})
|
|
206
|
+
}),
|
|
207
|
+
/* @__PURE__ */ jsx("span", {
|
|
208
|
+
className: style_default.SignatureParen,
|
|
209
|
+
children: ")"
|
|
210
|
+
})
|
|
211
|
+
] })
|
|
212
|
+
]
|
|
213
|
+
})
|
|
214
|
+
]
|
|
215
|
+
})
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
function Property({ decl, children }) {
|
|
219
|
+
const Docs = useComponents();
|
|
220
|
+
const Lang = useLanguageComponents();
|
|
221
|
+
if (!decl) return null;
|
|
222
|
+
switch (decl.kind) {
|
|
223
|
+
case "GoDeclProperty": return children({
|
|
224
|
+
name: decl.ident,
|
|
225
|
+
typeName: /* @__PURE__ */ jsx(Lang.TypeName, { type: decl.type }),
|
|
226
|
+
badges: decl.optional && /* @__PURE__ */ jsx(Docs.Badge, { id: "optional" }),
|
|
227
|
+
type: (isField(decl.type) || decl.type.kind in ComplexTypes) && /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
|
|
228
|
+
});
|
|
229
|
+
case "GoDeclConst": return children({
|
|
230
|
+
name: decl.ident,
|
|
231
|
+
typeName: "const",
|
|
232
|
+
type: /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
|
|
233
|
+
});
|
|
234
|
+
case "GoDeclReference": return children({ type: /* @__PURE__ */ jsx(Lang.Type, { type: decl.type }) });
|
|
235
|
+
case "GoDeclType":
|
|
236
|
+
case "GoDeclTypeAlias": {
|
|
237
|
+
const typeName = decl.type.kind === "GoTypeStruct" ? "struct" : decl.type.kind === "GoTypeInterface" ? "interface" : decl.kind === "GoDeclTypeAlias" ? "alias" : "type";
|
|
238
|
+
return children({
|
|
239
|
+
name: decl.ident,
|
|
240
|
+
typeName,
|
|
241
|
+
type: ["GoTypeStruct", "GoTypeInterface"].includes(decl.type.kind) || /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
function Declaration({ decl }) {
|
|
247
|
+
const Lang = useLanguageComponents();
|
|
248
|
+
if (!decl) return;
|
|
249
|
+
switch (decl.kind) {
|
|
250
|
+
case "GoDeclType": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
251
|
+
/* @__PURE__ */ jsx("span", {
|
|
252
|
+
className: style_default.TextKeyword,
|
|
253
|
+
children: "type "
|
|
254
|
+
}),
|
|
255
|
+
/* @__PURE__ */ jsxs("span", {
|
|
256
|
+
className: style_default.TextIdentifier,
|
|
257
|
+
children: [decl.ident, " "]
|
|
258
|
+
}),
|
|
259
|
+
/* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
|
|
260
|
+
] });
|
|
261
|
+
case "GoDeclTypeAlias": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
262
|
+
/* @__PURE__ */ jsx("span", {
|
|
263
|
+
className: style_default.TextKeyword,
|
|
264
|
+
children: "type "
|
|
265
|
+
}),
|
|
266
|
+
/* @__PURE__ */ jsxs("span", {
|
|
267
|
+
className: style_default.TextIdentifier,
|
|
268
|
+
children: [decl.ident, " "]
|
|
269
|
+
}),
|
|
270
|
+
/* @__PURE__ */ jsx("span", {
|
|
271
|
+
className: style_default.TextOperator,
|
|
272
|
+
children: "= "
|
|
273
|
+
}),
|
|
274
|
+
/* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
|
|
275
|
+
] });
|
|
276
|
+
case "GoDeclProperty": return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
277
|
+
className: style_default.TypePropertyName,
|
|
278
|
+
children: /* @__PURE__ */ jsxs("span", {
|
|
279
|
+
className: style_default.TextIdentifier,
|
|
280
|
+
children: [decl.ident, " "]
|
|
281
|
+
})
|
|
282
|
+
}), /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })] });
|
|
283
|
+
case "GoDeclReference": return /* @__PURE__ */ jsx(Lang.Type, { type: decl.type });
|
|
284
|
+
case "GoDeclConst": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
285
|
+
/* @__PURE__ */ jsx("span", {
|
|
286
|
+
className: style_default.TextKeyword,
|
|
287
|
+
children: "const "
|
|
288
|
+
}),
|
|
289
|
+
/* @__PURE__ */ jsxs("span", {
|
|
290
|
+
className: style_default.TextIdentifier,
|
|
291
|
+
children: [decl.ident, " "]
|
|
292
|
+
}),
|
|
293
|
+
/* @__PURE__ */ jsx(Lang.Type, { type: decl.type }),
|
|
294
|
+
/* @__PURE__ */ jsx("span", {
|
|
295
|
+
className: style_default.TextOperator,
|
|
296
|
+
children: " = "
|
|
297
|
+
}),
|
|
298
|
+
JSON.stringify(decl.value)
|
|
299
|
+
] });
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
//#endregion
|
|
304
|
+
export { Declaration, MethodSignature, Property, Type, TypeName, go_exports as t };
|
package/dist/languages/http.d.ts
CHANGED
|
@@ -1,14 +1,46 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { s as HttpAST } from "../index-Cl6Gny0o.js";
|
|
2
|
+
import { PropertyFn } from "./index.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/languages/http.d.ts
|
|
7
|
+
declare namespace http_d_exports {
|
|
8
|
+
export { Declaration, DeclarationProps, MethodInfo, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|
|
9
|
+
}
|
|
10
|
+
type TypeProps = {
|
|
11
|
+
type: HttpAST.HttpType;
|
|
12
|
+
};
|
|
13
|
+
declare function TypeName({
|
|
14
|
+
type
|
|
15
|
+
}: TypeProps): string | react_jsx_runtime0.JSX.Element;
|
|
16
|
+
declare function Type({
|
|
17
|
+
type
|
|
18
|
+
}: TypeProps): react_jsx_runtime0.JSX.Element;
|
|
19
|
+
type MethodSignatureProps = {
|
|
20
|
+
decl: HttpAST.HttpDeclFunction;
|
|
21
|
+
};
|
|
22
|
+
declare function MethodSignature({
|
|
23
|
+
decl
|
|
24
|
+
}: MethodSignatureProps): null;
|
|
25
|
+
declare function MethodInfo({
|
|
26
|
+
decl,
|
|
27
|
+
children
|
|
28
|
+
}: MethodSignatureProps & {
|
|
29
|
+
children: React.ReactNode;
|
|
30
|
+
}): react_jsx_runtime0.JSX.Element;
|
|
31
|
+
type PropertyProps = {
|
|
32
|
+
decl: HttpAST.HttpDeclaration;
|
|
33
|
+
children: PropertyFn;
|
|
34
|
+
};
|
|
35
|
+
declare function Property({
|
|
36
|
+
decl,
|
|
37
|
+
children
|
|
38
|
+
}: PropertyProps): React.ReactNode;
|
|
39
|
+
type DeclarationProps = {
|
|
40
|
+
decl: HttpAST.HttpDeclaration;
|
|
41
|
+
};
|
|
42
|
+
declare function Declaration({
|
|
43
|
+
decl
|
|
44
|
+
}: DeclarationProps): react_jsx_runtime0.JSX.Element | undefined;
|
|
45
|
+
//#endregion
|
|
46
|
+
export { Declaration, DeclarationProps, MethodInfo, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName, http_d_exports as t };
|