mirror of
https://github.com/denoland/deno.git
synced 2025-07-29 16:13:54 +00:00
Align JSDoc to style guide.
This commit is contained in:
parent
1840a19713
commit
10a97679ac
31 changed files with 437 additions and 423 deletions
|
@ -3,25 +3,24 @@ import * as msg from "gen/msg_generated";
|
|||
import { flatbuffers } from "flatbuffers";
|
||||
import * as dispatch from "./dispatch";
|
||||
|
||||
/**
|
||||
* Truncates or extends the specified file synchronously,
|
||||
* updating the size of this file to become size.
|
||||
/** Truncates or extends the specified file synchronously, updating the size of
|
||||
* this file to become size.
|
||||
*
|
||||
* import { truncateSync } from "deno";
|
||||
* import { truncateSync } from "deno";
|
||||
*
|
||||
* truncateSync("hello.txt", 10);
|
||||
* truncateSync("hello.txt", 10);
|
||||
*/
|
||||
export function truncateSync(name: string, len?: number): void {
|
||||
dispatch.sendSync(...req(name, len));
|
||||
}
|
||||
|
||||
/**
|
||||
* Truncates or extends the specified file,
|
||||
* updating the size of this file to become size.
|
||||
* Truncates or extends the specified file, updating the size of this file to
|
||||
* become size.
|
||||
*
|
||||
* import { truncate } from "deno";
|
||||
* import { truncate } from "deno";
|
||||
*
|
||||
* await truncate("hello.txt", 10);
|
||||
* await truncate("hello.txt", 10);
|
||||
*/
|
||||
export async function truncate(name: string, len?: number): Promise<void> {
|
||||
await dispatch.sendAsync(...req(name, len));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue