From 10a97679ac80b4304c75d33cbc59c5736d11deb1 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Mon, 15 Oct 2018 07:29:50 +1100 Subject: Align JSDoc to style guide. --- js/write_file.ts | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'js/write_file.ts') diff --git a/js/write_file.ts b/js/write_file.ts index e34448698..103b7315a 100644 --- a/js/write_file.ts +++ b/js/write_file.ts @@ -3,14 +3,13 @@ import * as msg from "gen/msg_generated"; import { flatbuffers } from "flatbuffers"; import * as dispatch from "./dispatch"; -/** - * Write a new file, with given filename and data synchronously. +/** Write a new file, with given filename and data synchronously. * - * import { writeFileSync } from "deno"; + * import { writeFileSync } from "deno"; * - * const encoder = new TextEncoder("utf-8"); - * const data = encoder.encode("Hello world\n"); - * writeFileSync("hello.txt", data); + * const encoder = new TextEncoder("utf-8"); + * const data = encoder.encode("Hello world\n"); + * writeFileSync("hello.txt", data); */ export function writeFileSync( filename: string, @@ -20,14 +19,13 @@ export function writeFileSync( dispatch.sendSync(...req(filename, data, perm)); } -/** - * Write a new file, with given filename and data. +/** Write a new file, with given filename and data. * - * import { writeFile } from "deno"; + * import { writeFile } from "deno"; * - * const encoder = new TextEncoder("utf-8"); - * const data = encoder.encode("Hello world\n"); - * await writeFile("hello.txt", data); + * const encoder = new TextEncoder("utf-8"); + * const data = encoder.encode("Hello world\n"); + * await writeFile("hello.txt", data); */ export async function writeFile( filename: string, -- cgit v1.2.3