Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/lib.deno.d.ts>Deno.ReadFileOptions

A JavaScript extension package for building strong and modern applications.
Latest
interface Deno.ReadFileOptions
import { type Deno } from "https://deno.land/x/ayonli_jsext@v0.9.72/lib.deno.d.ts";
const { ReadFileOptions } = Deno;

Options which can be set when using Deno.readFile or Deno.readFileSync.

Properties

optional
signal: AbortSignal

An abort signal to allow cancellation of the file read operation. If the signal becomes aborted the readFile operation will be stopped and the promise returned will be rejected with an AbortError.