summaryrefslogtreecommitdiff
path: root/js/mkdir.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2018-10-15 07:29:50 +1100
committerRyan Dahl <ry@tinyclouds.org>2018-10-14 17:38:23 -0400
commit10a97679ac80b4304c75d33cbc59c5736d11deb1 (patch)
treeb51b9183ed251f61373069e5c4d35e39603bedb2 /js/mkdir.ts
parent1840a1971317f5b8fc6e322b3a414b7f8a593c88 (diff)
Align JSDoc to style guide.
Diffstat (limited to 'js/mkdir.ts')
-rw-r--r--js/mkdir.ts15
1 files changed, 7 insertions, 8 deletions
diff --git a/js/mkdir.ts b/js/mkdir.ts
index 883d427ec..46578b058 100644
--- a/js/mkdir.ts
+++ b/js/mkdir.ts
@@ -3,21 +3,20 @@ import * as msg from "gen/msg_generated";
import { flatbuffers } from "flatbuffers";
import * as dispatch from "./dispatch";
-/**
- * Creates a new directory with the specified path and permission synchronously.
+/** Creates a new directory with the specified path and permission
+ * synchronously.
*
- * import { mkdirSync } from "deno";
- * mkdirSync("new_dir");
+ * import { mkdirSync } from "deno";
+ * mkdirSync("new_dir");
*/
export function mkdirSync(path: string, mode = 0o777): void {
dispatch.sendSync(...req(path, mode));
}
-/**
- * Creates a new directory with the specified path and permission.
+/** Creates a new directory with the specified path and permission.
*
- * import { mkdir } from "deno";
- * await mkdir("new_dir");
+ * import { mkdir } from "deno";
+ * await mkdir("new_dir");
*/
export async function mkdir(path: string, mode = 0o777): Promise<void> {
await dispatch.sendAsync(...req(path, mode));