Public
HTTP (deprecated)
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
export default async function(req: Request): Promise<Response> {
const urls = [
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.dom.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.dom.iterable.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.dom.asynciterable.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.webworker.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.webworker.importscripts.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.webworker.iterable.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.scripthost.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.decorators.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.deno.shared_globals.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.deno.unstable.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.deno.window.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.deno.worker.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es5.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es6.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2015.collection.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2015.core.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2015.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2015.generator.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2015.iterable.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2015.promise.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2015.proxy.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2015.reflect.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2015.symbol.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2015.symbol.wellknown.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2016.array.include.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2016.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2016.full.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2017.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2017.date.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2017.full.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2017.intl.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2017.object.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2017.sharedmemory.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2017.string.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2017.typedarrays.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2018.asyncgenerator.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2018.asynciterable.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2018.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2018.full.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2018.intl.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2018.promise.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2018.regexp.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2019.array.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2019.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2019.full.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2019.intl.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2019.object.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2019.string.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2019.symbol.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2020.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2020.date.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2020.full.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2020.number.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2020.string.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2020.symbol.wellknown.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2020.bigint.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2020.promise.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2020.sharedmemory.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2020.intl.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2021.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2021.full.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2021.intl.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2021.promise.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2021.string.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2021.weakref.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2022.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2022.array.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2022.error.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2022.full.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2022.intl.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2022.object.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2022.regexp.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2022.sharedmemory.d.ts",
"https://deno.land/x/deno@v1.40.2/cli/tsc/dts/lib.es2022.string.d.ts",
"https://www.val.town/types/lib.deno.ns.d.ts",
"https://www.val.town/types/lib.dom.extras.d.ts",
"https://www.val.town/types/valtown.d.ts",
];
return new Response(
`/// <reference no-default-lib="true"/>\n`
+ ((await Promise.all(urls.map(url => fetch(url).then(res => res.text())))).join("\n\n").replace(
/^\/\/\/.+/gm,
"",
)),
{
headers: { "access-control-allow-origin": "*" },
},
);
}
easrng-vttypes.web.val.run
March 20, 2024