deno.land / std@0.166.0 / _tools / testdata / 02_invalid_imports.ts

02_invalid_imports.ts
نووسراو ببینە
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
// Copyright 2022-2022 the Deno authors. All rights reserved. MIT license.
/** * Test data for the program that checks imports in documentation. * * ```ts * import { a, b, c } from "file://a/b/c.ts"; * import cheese from "../../goat.ts"; * import purr from "https://esm.sh/cat"; * import { meow } from "../cat.js"; * import { woof } from "./dog.mjs"; * import make, { Sound } from "https://cdn.skypack.dev/noise/mod.mjs"; * import "https://something.somewhere"; * import * as dotenv from "https://deno.land/std/dotenv/mod.ts"; * import { assertEquals } from "https://deno.land/std@1.2.3/testing/asserts.ts"; * import { walk } from "https://deno.land/std@$STD_VERSION/fs/walk.ts"; * import { x, y, z } from "https://example.com/xyz.ts"; * * let s = make("some noise") as Sound; * ``` * * ```JavaScript * import deno from "land"; * ``` * * @module */
/** * Another JSDoc comment with a code block. This helps testing line number * calculation. * * ```js * // A fake copyright notice * import generateMockCode from "npm:@generators/mock-code"; * * const a = 1; * * function imitateSome(realCode) { * return generateMockCode(realCode, a); * } * * const deceptiveCode = imitateSome("var inception = true;"); * ``` */export function a() {}
/** * A third one, just to be sure. * * ```TypeScript * import something from "somewhere"; * ``` */export function b() {}
/** * CaSe InSeNsItIvE. * * ```javaSCRIPT * import { Caffeine, Tannin } from "https://favourite.cafe"; * ``` * * ```TYPEscript * import { Hops, Yeast } from "https://craft.beer"; * ``` */export function c() {}
/** * Without a language specifier, defaulting to TypeScript. * * ``` * import { juice } from "https://deno.land/x/fresh/lemon.ts"; * ``` */export function d() {}
/** * A language we don't speak yet. * * ```jsfuck * ([]+[])[(![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(!![]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]()[+!+[]+[!+[]+!+[]]]+([][[]]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+([][[]]+[])[+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[(![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(!![]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]()[+!+[]+[!+[]+!+[]]] * ``` */export function e() {}
std

Version Info

Tagged at
a year ago