0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-01 12:16:11 -05:00

Add sync method to filehandle method

This commit is contained in:
张瑞 2024-11-25 17:12:46 +08:00
parent 43ac6b9573
commit fb22e5ced2

View file

@ -148,7 +148,7 @@ export class FileHandle extends EventEmitter {
stat(options: { bigint: true }): Promise<BigIntStats>;
stat(options?: { bigint: boolean }): Promise<Stats | BigIntStats> {
return fsCall(promises.fstat, this, options);
};
}
// readLines(options?):Promise<InterfaceConstructor>
sync():Promise<void>{
return Promise.resolve(promises.sync());