From 7211c7cf8f1348a2b4f9177210710a2f44d69158 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Wed, 12 May 2021 21:14:48 +0800 Subject: docs(cli/dts): fix `Deno.applySourceMap` example (#10602) --- cli/dts/lib.deno.unstable.d.ts | 7 ++++--- 1 file 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; -- cgit v1.2.3