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/ensure_dir.ts | |
| parent | a391660d2d539e3ca71418604e34df6c50dd6502 (diff) | |
Improve jsdoc (denoland/deno_std#277)
Original: https://github.com/denoland/deno_std/commit/1805c18ac7ed3aa6727f509ee2ec55f718ff2f61
Diffstat (limited to 'fs/ensure_dir.ts')
| -rw-r--r-- | fs/ensure_dir.ts | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/fs/ensure_dir.ts b/fs/ensure_dir.ts index 5a5cc0a01..e7e4f69a2 100644 --- a/fs/ensure_dir.ts +++ b/fs/ensure_dir.ts @@ -1,9 +1,8 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. + /** - * Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. - * @export - * @param {string} dir - * @returns {Promise<void>} + * Ensures that the directory exists. + * If the directory structure does not exist, it is created. Like mkdir -p. */ export async function ensureDir(dir: string): Promise<void> { try { @@ -16,10 +15,8 @@ export async function ensureDir(dir: string): Promise<void> { } /** - * Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. - * @export - * @param {string} dir - * @returns {void} + * Ensures that the directory exists. + * If the directory structure does not exist, it is created. Like mkdir -p. */ export function ensureDirSync(dir: string): void { try { |
