Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/dts/lib.deno.ns.d.ts>Deno.ReadFileOptions

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Deno.ReadFileOptions
import { type Deno } from "https://deno.land/x/deno@v1.28.0/cli/dts/lib.deno.ns.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.