@types/iltorb
Advanced tools
Comparing version 2.3.2 to 2.3.3
@@ -16,10 +16,10 @@ // Type definitions for iltorb 2.3 | ||
export interface BrotliEncodeParams { | ||
disable_literal_context_modeling?: boolean; | ||
lgblock?: number; | ||
lgwin?: number; | ||
disable_literal_context_modeling?: boolean | undefined; | ||
lgblock?: number | undefined; | ||
lgwin?: number | undefined; | ||
/** @default 0 */ | ||
mode?: BrotliMode; | ||
mode?: BrotliMode | undefined; | ||
/** @default 11 */ | ||
quality?: BrotliCompressionQuality; | ||
size_hint?: number; | ||
quality?: BrotliCompressionQuality | undefined; | ||
size_hint?: number | undefined; | ||
} | ||
@@ -26,0 +26,0 @@ |
{ | ||
"name": "@types/iltorb", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"description": "TypeScript definitions for iltorb", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/iltorb", | ||
"license": "MIT", | ||
@@ -29,4 +30,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "d5a035327627c514a6788c11d1d2a8f3b273dc3f952e96bfbebea89686e35d82", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "bd1dda51a0641299b0d898f23e36d99ce9547d87b2df2626af6dd3a883c79079", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -9,5 +9,52 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/iltorb. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/iltorb/index.d.ts) | ||
````ts | ||
// Type definitions for iltorb 2.3 | ||
// Project: https://github.com/MayhemYDG/iltorb | ||
// Definitions by: Arturas Molcanovas <https://github.com/Alorel> | ||
// Francis Gulotta <https://github.com/reconbot> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.2 | ||
/// <reference types="node"/> | ||
import { Transform } from 'stream'; | ||
export type BrotliMode = 0 | 1 | 2; | ||
export type BrotliCompressionQuality = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11; | ||
export interface BrotliEncodeParams { | ||
disable_literal_context_modeling?: boolean | undefined; | ||
lgblock?: number | undefined; | ||
lgwin?: number | undefined; | ||
/** @default 0 */ | ||
mode?: BrotliMode | undefined; | ||
/** @default 11 */ | ||
quality?: BrotliCompressionQuality | undefined; | ||
size_hint?: number | undefined; | ||
} | ||
export interface BrotliFlushable { | ||
flush(): void; | ||
} | ||
export type IltorbCallback = (err: Error | null | undefined, output: Buffer) => void; | ||
export function compress(buffer: Buffer, options: BrotliEncodeParams, callback: IltorbCallback): void; | ||
export function compress(buffer: Buffer, callback: IltorbCallback): void; | ||
export function compress(buffer: Buffer, options?: BrotliEncodeParams): Promise<Buffer>; | ||
export function decompress(buffer: Buffer, callback: IltorbCallback): void; | ||
export function decompress(buffer: Buffer): Promise<Buffer>; | ||
export function compressSync(buffer: Buffer, options?: BrotliEncodeParams): Buffer; | ||
export function decompressSync(buffer: Buffer): Buffer; | ||
export function compressStream(options?: BrotliEncodeParams): Transform & BrotliFlushable; | ||
export function decompressStream(): Transform; | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 19 May 2020 11:05:42 GMT | ||
* Last updated: Thu, 08 Jul 2021 14:23:08 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +61,0 @@ * Global values: none |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
6150
0
64