diff options
| author | Vincent LE GOFF <g_n_s@hotmail.fr> | 2019-03-14 15:24:54 +0100 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-14 10:24:54 -0400 |
| commit | 0b4f73cf9d6e7674c76126fc9d37defb58e7a433 (patch) | |
| tree | a7f47f908cf81ea36771b537fe043d3ed17bfc34 /fs/exists.ts | |
| parent | a391660d2d539e3ca71418604e34df6c50dd6502 (diff) | |
Improve jsdoc (denoland/deno_std#277)
Original: https://github.com/denoland/deno_std/commit/1805c18ac7ed3aa6727f509ee2ec55f718ff2f61
Diffstat (limited to 'fs/exists.ts')
| -rw-r--r-- | fs/exists.ts | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/fs/exists.ts b/fs/exists.ts index aa961037d..41961a0f2 100644 --- a/fs/exists.ts +++ b/fs/exists.ts @@ -1,22 +1,13 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -/** - * Test whether or not the given path exists by checking with the file system - * @export - * @param {string} filePath - * @returns {Promise<boolean>} - */ + +/** Test whether or not the given path exists by checking with the file system */ export async function exists(filePath: string): Promise<boolean> { return Deno.stat(filePath) .then(() => true) .catch(() => false); } -/** - * Test whether or not the given path exists by checking with the file system - * @export - * @param {string} filePath - * @returns {boolean} - */ +/** Test whether or not the given path exists by checking with the file system */ export function existsSync(filePath: string): boolean { try { Deno.statSync(filePath); |
