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

x/ts_serve/src/file_server.ts>ServeFileOptions

Transpile TypeScript on the fly and deliver it from your server as ES Modules.
Latest
interface ServeFileOptions
Re-export
import { type ServeFileOptions } from "https://deno.land/x/ts_serve@v1.4.4/src/file_server.ts";

Interface for serveFile options.

Properties

optional
etagAlgorithm: DigestAlgorithm = "fnv1a"

The algorithm to use for generating the ETag.

optional
fileInfo: Deno.FileInfo

An optional FileInfo object returned by Deno.stat. It is used for optimization purposes.