0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00

doc: add unstable note to Deno.ftruncateSync and ftruncate (#6590)

This commit is contained in:
Casper Beyer 2020-07-02 21:34:19 +08:00 committed by GitHub
parent 74cd91ee56
commit 8a14eafaff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1086,7 +1086,8 @@ declare namespace Deno {
/** **UNSTABLE**: The URL of the file that was originally executed from the command-line. */
export const mainModule: string;
/** Synchronously truncates or extends the specified file stream, to reach the
/** **UNSTABLE**: new API, yet to be vetted.
* Synchronously truncates or extends the specified file stream, to reach the
* specified `len`. If `len` is not specified then the entire file contents
* are truncated.
*
@ -1106,7 +1107,8 @@ declare namespace Deno {
*/
export function ftruncateSync(rid: number, len?: number): void;
/** Truncates or extends the specified file stream, to reach the specified `len`. If
/** **UNSTABLE**: new API, yet to be vetted.
* Truncates or extends the specified file stream, to reach the specified `len`. If
* `len` is not specified then the entire file contents are truncated.
*
* ```ts