Skip to content

DictionaryOptions

Defined in: next/api.d.ts:195

The options of Dictionary.from. Other properties are ignored. F is the formats of dictionaries that the entry point includes, as for CompressOptions.

F extends "zstd" | "brotli" = "zstd" | "brotli"

format: F

Defined in: next/api.d.ts:197

The format that the dictionary is for: 'zstd' or 'brotli'.


optional level?: number

Defined in: next/api.d.ts:207

The zstd compression level to prepare the dictionary for: an integer from -131072 to 22, 3 by default, which 0 also selects. Compression with the dictionary and without a level of its own compresses at this level. Other levels work too: the dictionary prepares each on its first use, and keeps the last 3 of them.

Brotli dictionaries take no level: leave it out.