1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00

fix: invalid types for asynchronous and synchronous File#truncate (#10353)

This commit is contained in:
Carter Snook 2021-04-26 09:56:22 -05:00 committed by GitHub
parent 801244027d
commit 0d3b22a53a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -781,8 +781,8 @@ declare namespace Deno {
constructor(rid: number);
write(p: Uint8Array): Promise<number>;
writeSync(p: Uint8Array): number;
truncate(len?: number): void;
truncateSync(len?: number): Promise<void>;
truncate(len?: number): Promise<void>;
truncateSync(len?: number): void;
read(p: Uint8Array): Promise<number | null>;
readSync(p: Uint8Array): number | null;
seek(offset: number, whence: SeekMode): Promise<number>;