From 0b4f73cf9d6e7674c76126fc9d37defb58e7a433 Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Thu, 14 Mar 2019 15:24:54 +0100 Subject: Improve jsdoc (denoland/deno_std#277) Original: https://github.com/denoland/deno_std/commit/1805c18ac7ed3aa6727f509ee2ec55f718ff2f61 --- fs/exists.ts | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'fs/exists.ts') 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} - */ + +/** Test whether or not the given path exists by checking with the file system */ export async function exists(filePath: string): Promise { 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); -- cgit v1.2.3