@neocode-ai/web 1.1.1
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 +54 -0
- package/astro.config.mjs +145 -0
- package/config.mjs +14 -0
- package/package.json +41 -0
- package/public/robots.txt +6 -0
- package/public/theme.json +183 -0
- package/src/assets/lander/check.svg +2 -0
- package/src/assets/lander/copy.svg +2 -0
- package/src/assets/lander/screenshot-github.png +0 -0
- package/src/assets/lander/screenshot-splash.png +0 -0
- package/src/assets/lander/screenshot-vscode.png +0 -0
- package/src/assets/lander/screenshot.png +0 -0
- package/src/assets/logo-dark.svg +20 -0
- package/src/assets/logo-light.svg +20 -0
- package/src/assets/logo-ornate-dark.svg +18 -0
- package/src/assets/logo-ornate-light.svg +18 -0
- package/src/assets/web/web-homepage-active-session.png +0 -0
- package/src/assets/web/web-homepage-new-session.png +0 -0
- package/src/assets/web/web-homepage-see-servers.png +0 -0
- package/src/components/Head.astro +50 -0
- package/src/components/Header.astro +128 -0
- package/src/components/Hero.astro +11 -0
- package/src/components/Lander.astro +713 -0
- package/src/components/Share.tsx +634 -0
- package/src/components/SiteTitle.astro +59 -0
- package/src/components/icons/custom.tsx +87 -0
- package/src/components/icons/index.tsx +4454 -0
- package/src/components/share/common.tsx +77 -0
- package/src/components/share/content-bash.module.css +85 -0
- package/src/components/share/content-bash.tsx +67 -0
- package/src/components/share/content-code.module.css +26 -0
- package/src/components/share/content-code.tsx +32 -0
- package/src/components/share/content-diff.module.css +153 -0
- package/src/components/share/content-diff.tsx +231 -0
- package/src/components/share/content-error.module.css +64 -0
- package/src/components/share/content-error.tsx +24 -0
- package/src/components/share/content-markdown.module.css +154 -0
- package/src/components/share/content-markdown.tsx +75 -0
- package/src/components/share/content-text.module.css +63 -0
- package/src/components/share/content-text.tsx +37 -0
- package/src/components/share/copy-button.module.css +30 -0
- package/src/components/share/copy-button.tsx +28 -0
- package/src/components/share/part.module.css +428 -0
- package/src/components/share/part.tsx +780 -0
- package/src/components/share.module.css +832 -0
- package/src/content/docs/1-0.mdx +67 -0
- package/src/content/docs/acp.mdx +156 -0
- package/src/content/docs/agents.mdx +720 -0
- package/src/content/docs/cli.mdx +597 -0
- package/src/content/docs/commands.mdx +323 -0
- package/src/content/docs/config.mdx +683 -0
- package/src/content/docs/custom-tools.mdx +170 -0
- package/src/content/docs/ecosystem.mdx +76 -0
- package/src/content/docs/enterprise.mdx +170 -0
- package/src/content/docs/formatters.mdx +130 -0
- package/src/content/docs/github.mdx +321 -0
- package/src/content/docs/gitlab.mdx +195 -0
- package/src/content/docs/ide.mdx +48 -0
- package/src/content/docs/index.mdx +359 -0
- package/src/content/docs/keybinds.mdx +191 -0
- package/src/content/docs/lsp.mdx +188 -0
- package/src/content/docs/mcp-servers.mdx +511 -0
- package/src/content/docs/models.mdx +223 -0
- package/src/content/docs/modes.mdx +331 -0
- package/src/content/docs/network.mdx +57 -0
- package/src/content/docs/permissions.mdx +237 -0
- package/src/content/docs/plugins.mdx +362 -0
- package/src/content/docs/providers.mdx +1889 -0
- package/src/content/docs/rules.mdx +180 -0
- package/src/content/docs/sdk.mdx +391 -0
- package/src/content/docs/server.mdx +286 -0
- package/src/content/docs/share.mdx +128 -0
- package/src/content/docs/skills.mdx +220 -0
- package/src/content/docs/themes.mdx +369 -0
- package/src/content/docs/tools.mdx +345 -0
- package/src/content/docs/troubleshooting.mdx +300 -0
- package/src/content/docs/tui.mdx +390 -0
- package/src/content/docs/web.mdx +136 -0
- package/src/content/docs/windows-wsl.mdx +113 -0
- package/src/content/docs/zen.mdx +251 -0
- package/src/content.config.ts +7 -0
- package/src/pages/[...slug].md.ts +18 -0
- package/src/pages/s/[id].astro +113 -0
- package/src/styles/custom.css +405 -0
- package/src/types/lang-map.d.ts +27 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--sl-color-bg: hsl(0, 20%, 99%);
|
|
3
|
+
--sl-color-gray-5: hsl(0, 1%, 85%);
|
|
4
|
+
--sl-nav-gap: 40px;
|
|
5
|
+
--sl-color-text: hsl(0, 1%, 39%);
|
|
6
|
+
--sl-border-color: hsl(0, 1%, 85%);
|
|
7
|
+
--sl-color-hairline-shade: hsl(0, 1%, 85%);
|
|
8
|
+
|
|
9
|
+
--color-background: hsl(0, 20%, 99%);
|
|
10
|
+
--color-background-weak: hsl(0, 8%, 97%);
|
|
11
|
+
--color-background-weak-hover: hsl(0, 8%, 94%);
|
|
12
|
+
--color-background-strong: hsl(0, 5%, 12%);
|
|
13
|
+
--color-background-strong-hover: hsl(0, 5%, 18%);
|
|
14
|
+
--color-background-interactive: hsl(62, 84%, 88%);
|
|
15
|
+
--color-background-interactive-weaker: hsl(64, 74%, 95%);
|
|
16
|
+
|
|
17
|
+
--color-text: hsl(0, 1%, 39%);
|
|
18
|
+
--color-text-weak: hsl(0, 1%, 60%);
|
|
19
|
+
--color-text-weaker: hsl(0, 3%, 88%);
|
|
20
|
+
--color-text-strong: hsl(0, 5%, 12%);
|
|
21
|
+
--color-text-inverted: hsl(0, 20%, 99%);
|
|
22
|
+
|
|
23
|
+
--color-border: hsl(30, 2%, 81%);
|
|
24
|
+
--color-border-weak: hsl(0, 1%, 85%);
|
|
25
|
+
|
|
26
|
+
--color-icon: hsl(0, 1%, 55%);
|
|
27
|
+
|
|
28
|
+
/* For the share component */
|
|
29
|
+
--sl-color-bg-surface: var(--sl-color-bg-nav);
|
|
30
|
+
--sl-color-divider: var(--sl-color-gray-5);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
body {
|
|
34
|
+
color: var(--color-text) !important;
|
|
35
|
+
font-size: 14px !important;
|
|
36
|
+
|
|
37
|
+
@media (prefers-color-scheme: dark) {
|
|
38
|
+
--sl-color-bg: hsl(0, 9%, 7%);
|
|
39
|
+
--sl-color-gray-5: hsl(0, 4%, 23%);
|
|
40
|
+
--sl-color-text: hsl(0, 4%, 71%);
|
|
41
|
+
--sl-border-color: hsl(0, 4%, 23%);
|
|
42
|
+
--sl-color-hairline-shade: hsl(0, 4%, 23%);
|
|
43
|
+
|
|
44
|
+
--color-background: hsl(0, 9%, 7%);
|
|
45
|
+
--color-background-weak: hsl(0, 6%, 10%);
|
|
46
|
+
--color-background-strong: hsl(0, 15%, 94%);
|
|
47
|
+
--color-background-strong-hover: hsl(0, 15%, 97%);
|
|
48
|
+
--color-background-interactive: hsl(62, 100%, 90%);
|
|
49
|
+
--color-background-interactive-weaker: hsl(60, 20%, 8%);
|
|
50
|
+
|
|
51
|
+
--color-text: hsl(0, 4%, 71%);
|
|
52
|
+
--color-text-weak: hsl(0, 2%, 49%);
|
|
53
|
+
--color-text-weaker: hsl(0, 3%, 28%);
|
|
54
|
+
--color-text-strong: hsl(0, 15%, 94%);
|
|
55
|
+
--color-text-inverted: hsl(0, 9%, 7%);
|
|
56
|
+
|
|
57
|
+
--color-border: hsl(0, 3%, 28%);
|
|
58
|
+
--color-border-weak: hsl(0, 4%, 23%);
|
|
59
|
+
|
|
60
|
+
--color-icon: hsl(10, 3%, 43%);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.header:where(.astro-tcroauqe) {
|
|
65
|
+
border-bottom: 1px solid var(--color-border-weak) !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.sl-markdown-content hr {
|
|
69
|
+
border-bottom: 1px solid var(--color-border-weak) !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
#starlight__on-this-page--mobile {
|
|
73
|
+
border-bottom: 1px solid var(--color-border-weak) !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
mobile-starlight-toc nav summary .toggle {
|
|
77
|
+
opacity: 60% !important;
|
|
78
|
+
text-decoration: none !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
nav.sidebar summary svg.caret {
|
|
82
|
+
color: var(--color-icon) !important;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Search button style overrides */
|
|
86
|
+
body > .page > header button[data-open-modal] > kbd {
|
|
87
|
+
position: relative;
|
|
88
|
+
display: flex;
|
|
89
|
+
gap: 4px;
|
|
90
|
+
}
|
|
91
|
+
body > .page > header button[data-open-modal] > kbd > kbd {
|
|
92
|
+
color: var(--color-icon) !important;
|
|
93
|
+
font-size: 15px;
|
|
94
|
+
}
|
|
95
|
+
/* Make the Cmd (⌘) keystroke bigger */
|
|
96
|
+
body > .page > header button[data-open-modal][aria-keyshortcuts="Meta+K"] > kbd > kbd:first-child {
|
|
97
|
+
font-size: 20px;
|
|
98
|
+
line-height: 0.73;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.starlight-aside__title {
|
|
102
|
+
flex: 0 0 auto;
|
|
103
|
+
margin-top: 3px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
body > .page > .main-frame .main-pane > main > .content-panel + .content-panel {
|
|
107
|
+
border-top: none !important;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
body > .page > header a.site-title img {
|
|
111
|
+
height: 2rem !important;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
a {
|
|
115
|
+
color: var(--color-text-strong) !important;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.page-description {
|
|
119
|
+
color: var(--color-text) !important;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.right-sidebar {
|
|
123
|
+
border-inline-start: none !important;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.sidebar-pane {
|
|
127
|
+
border-inline-end: 1px solid var(--color-border-weak) !important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.right-sidebar-panel {
|
|
131
|
+
padding: 24px 0 !important;
|
|
132
|
+
color: var(--color-text-weaker);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.sidebar-content {
|
|
136
|
+
padding: 24px 0 !important;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
a[aria-current="page"] {
|
|
140
|
+
border-left: 2px solid var(--color-background-strong);
|
|
141
|
+
background: var(--color-background-weak) !important;
|
|
142
|
+
font-weight: 600 !important;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
ul.top-level a[aria-current="page"] > span {
|
|
146
|
+
color: var(--color-text-strong) !important;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
#starlight__sidebar > div > sl-sidebar-state-persist > ul > li > details > summary {
|
|
150
|
+
padding: 0 24px !important;
|
|
151
|
+
margin-top: 20px !important;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
#starlight__sidebar > div > sl-sidebar-state-persist > ul > li > details > summary:hover {
|
|
155
|
+
background: var(--color-background-weak);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
#starlight__sidebar > div > sl-sidebar-state-persist > ul > li > details > summary span {
|
|
159
|
+
color: var(--color-text-strong) !important;
|
|
160
|
+
font-weight: 600 !important;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.top-level li a {
|
|
164
|
+
border-radius: 0;
|
|
165
|
+
width: 100%;
|
|
166
|
+
padding: 4px 24px !important;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.top-level li a:hover {
|
|
170
|
+
background: var(--color-background-weak) !important;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.right-group {
|
|
174
|
+
gap: 40px !important;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.social-icons {
|
|
178
|
+
gap: 24px !important;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.social-icons a svg {
|
|
182
|
+
height: 18px !important;
|
|
183
|
+
width: 18px !important;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
site-search > button {
|
|
187
|
+
text-transform: none !important;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
body > .page > header button[data-open-modal] {
|
|
191
|
+
gap: 12px !important;
|
|
192
|
+
background: var(--color-background-weak);
|
|
193
|
+
border: 1px solid var(--color-border-weak) !important;
|
|
194
|
+
padding: 6px 12px !important;
|
|
195
|
+
border-radius: 4px;
|
|
196
|
+
|
|
197
|
+
@media (prefers-color-scheme: dark) {
|
|
198
|
+
background: var(--color-background-weak);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
body > .page > header button[data-open-modal] {
|
|
203
|
+
background: var(--color-background-weaker);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
site-search > button span {
|
|
207
|
+
text-decoration: none !important;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.starlight-aside {
|
|
211
|
+
display: flex;
|
|
212
|
+
gap: 16px;
|
|
213
|
+
align-items: start;
|
|
214
|
+
|
|
215
|
+
.starlight-aside__content {
|
|
216
|
+
margin-top: 0;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
@media (max-width: 768px) {
|
|
220
|
+
flex-direction: column;
|
|
221
|
+
gap: 6px;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
site-search > button > kbd {
|
|
226
|
+
font-size: 14px !important;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
h1 a,
|
|
230
|
+
h2 a,
|
|
231
|
+
h3 a,
|
|
232
|
+
h4 a,
|
|
233
|
+
h5 a,
|
|
234
|
+
h6 a {
|
|
235
|
+
color: var(--color-text-strong) !important;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
h1 {
|
|
239
|
+
font-size: 26px !important;
|
|
240
|
+
text-transform: none !important;
|
|
241
|
+
font-weight: 500 !important;
|
|
242
|
+
color: var(--color-text-strong) !important;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
h2 {
|
|
246
|
+
font-size: 22px !important;
|
|
247
|
+
text-transform: none !important;
|
|
248
|
+
font-weight: 500 !important;
|
|
249
|
+
color: var(--color-text-strong) !important;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
h3 {
|
|
253
|
+
font-size: 18px !important;
|
|
254
|
+
text-transform: none !important;
|
|
255
|
+
font-weight: 500 !important;
|
|
256
|
+
color: var(--color-text-strong) !important;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
h4 {
|
|
260
|
+
font-size: 16px !important;
|
|
261
|
+
text-transform: none !important;
|
|
262
|
+
font-weight: 500 !important;
|
|
263
|
+
color: var(--color-text-strong) !important;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
strong {
|
|
267
|
+
font-weight: 500 !important;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
ul,
|
|
271
|
+
ol {
|
|
272
|
+
list-style: none !important;
|
|
273
|
+
padding: 0 !important;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.sl-markdown-content .tab > [role="tab"][aria-selected="true"] {
|
|
277
|
+
border-color: var(--color-text-strong);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.social-icons a svg {
|
|
281
|
+
color: var(--color-text-weak) !important;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.social-icons a svg:hover {
|
|
285
|
+
color: var(--color-text-strong) !important;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
body > .page > header,
|
|
289
|
+
:root[data-has-sidebar] body > .page > header {
|
|
290
|
+
background: var(--color-background) !important;
|
|
291
|
+
padding: 24px !important;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.sl-container {
|
|
295
|
+
box-sizing: border-box !important;
|
|
296
|
+
width: 100% !important;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.right-sidebar-panel nav,
|
|
300
|
+
.right-sidebar-panel h2,
|
|
301
|
+
.right-sidebar-panel ul,
|
|
302
|
+
.right-sidebar-panel li,
|
|
303
|
+
.right-sidebar-panel a {
|
|
304
|
+
display: block;
|
|
305
|
+
width: 100%;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.sl-container {
|
|
309
|
+
max-width: 100% !important;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
nav.sidebar .sl-container ul li a,
|
|
313
|
+
div.right-sidebar .sl-container ul li a {
|
|
314
|
+
padding: 4px 24px !important;
|
|
315
|
+
width: 100% !important;
|
|
316
|
+
color: var(--color-text-weaker);
|
|
317
|
+
opacity: 50%;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
nav.sidebar .sl-container ul li a:hover,
|
|
321
|
+
div.right-sidebar .sl-container ul li a:hover {
|
|
322
|
+
background: var(--color-background-weak);
|
|
323
|
+
|
|
324
|
+
@media (prefers-color-scheme: dark) {
|
|
325
|
+
background: var(--color-background-weak);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
nav.sidebar .sl-container ul li ul li,
|
|
330
|
+
div.right-sidebar .sl-container ul li ul li {
|
|
331
|
+
padding: 4px 12px 0 12px !important;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
nav.sidebar .sl-container ul li a[aria-current="true"],
|
|
335
|
+
div.right-sidebar .sl-container ul li a[aria-current="true"] {
|
|
336
|
+
color: var(--color-text-strong) !important;
|
|
337
|
+
opacity: 100%;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
h2#starlight__on-this-page {
|
|
341
|
+
font-size: 14px !important;
|
|
342
|
+
color: var(--color-text-strong) !important;
|
|
343
|
+
margin: 0 !important;
|
|
344
|
+
font-weight: 400 !important;
|
|
345
|
+
padding: 0 24px 12px 24px;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
#starlight__on-this-page ul {
|
|
349
|
+
color: var(--color-text-strong) !important;
|
|
350
|
+
font-size: 16px !important;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.middle-group .links {
|
|
354
|
+
color: var(--color-icon);
|
|
355
|
+
text-decoration: none;
|
|
356
|
+
text-transform: none;
|
|
357
|
+
font-size: 16px;
|
|
358
|
+
display: none !important;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.middle-group .links:hover {
|
|
362
|
+
text-decoration: underline;
|
|
363
|
+
text-underline-offset: 4px;
|
|
364
|
+
text-decoration-thickness: 1px;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
nav.sidebar ul.top-level > li > details > summary .group-label > span {
|
|
368
|
+
margin-top: 24px !important;
|
|
369
|
+
color: var(--color-text-strong) !important;
|
|
370
|
+
text-transform: none !important;
|
|
371
|
+
font-weight: 500 !important;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.content-panel {
|
|
375
|
+
padding: 2rem 3rem !important;
|
|
376
|
+
|
|
377
|
+
@media (max-width: 768px) {
|
|
378
|
+
padding: 1rem 1.5rem !important;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.expressive-code {
|
|
383
|
+
margin: 0.75rem 0 3rem 0 !important;
|
|
384
|
+
border-radius: 6px;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.expressive-code figure {
|
|
388
|
+
background: var(--color-background-weak) !important;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.expressive-code .frame {
|
|
392
|
+
box-shadow: none;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
@media (prefers-color-scheme: dark) {
|
|
396
|
+
.shiki,
|
|
397
|
+
.shiki span {
|
|
398
|
+
color: var(--shiki-dark) !important;
|
|
399
|
+
background-color: var(--shiki-dark-bg) !important;
|
|
400
|
+
/* Optional, if you also want font styles */
|
|
401
|
+
font-style: var(--shiki-dark-font-style) !important;
|
|
402
|
+
font-weight: var(--shiki-dark-font-weight) !important;
|
|
403
|
+
text-decoration: var(--shiki-dark-text-decoration) !important;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare module "lang-map" {
|
|
2
|
+
/** Returned by calling `map()` */
|
|
3
|
+
export interface MapReturn {
|
|
4
|
+
/** All extensions keyed by language name */
|
|
5
|
+
extensions: Record<string, string[]>
|
|
6
|
+
/** All languages keyed by file-extension */
|
|
7
|
+
languages: Record<string, string[]>
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Calling `map()` gives you the raw lookup tables:
|
|
12
|
+
*
|
|
13
|
+
* ```js
|
|
14
|
+
* const { extensions, languages } = map();
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
function map(): MapReturn
|
|
18
|
+
|
|
19
|
+
/** Static method: get extensions for a given language */
|
|
20
|
+
namespace map {
|
|
21
|
+
function extensions(language: string): string[]
|
|
22
|
+
/** Static method: get languages for a given extension */
|
|
23
|
+
function languages(extension: string): string[]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export = map
|
|
27
|
+
}
|