diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-05-12 21:14:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 15:14:48 +0200 |
commit | 7211c7cf8f1348a2b4f9177210710a2f44d69158 (patch) | |
tree | cfb70e8dce69698f25fc73375afa762ab41d9025 /cli/dts/lib.deno.unstable.d.ts | |
parent | 1cd1419e18386d512ab98849d132117182545b89 (diff) |
docs(cli/dts): fix `Deno.applySourceMap` example (#10602)
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 0df11128c..898f06f37 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -526,18 +526,19 @@ declare namespace Deno { * uncaught error is logged. This function can be used to perform the lookup * for creating better error handling. * - * **Note:** `line` and `column` are 1 indexed, which matches display + * **Note:** `lineNumber` and `columnNumber` are 1 indexed, which matches display * expectations, but is not typical of most index numbers in Deno. * * An example: * * ```ts - * const orig = Deno.applySourceMap({ + * const origin = Deno.applySourceMap({ * fileName: "file://my/module.ts", * lineNumber: 5, * columnNumber: 15 * }); - * console.log(`${orig.filename}:${orig.line}:${orig.column}`); + * + * console.log(`${origin.fileName}:${origin.lineNumber}:${origin.columnNumber}`); * ``` */ export function applySourceMap(location: Location): Location; |