Skip to main content
Module

std/types.d.ts>Closer

Deno standard library
Go to Latest
interface Closer
Deprecated
Deprecated

(will be removed in 0.211.0) Import from https://deno.land/std/io/types.d.ts instead.

import { type Closer } from "https://deno.land/std@0.209.0/types.d.ts";

An abstract interface which when implemented provides an interface to close files/resources that were previously opened.

Methods

close(): void

Closes the resource, "freeing" the backing file/resource.