
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@types/hapi__subtext
Advanced tools
TypeScript definitions for @hapi/subtext
npm install --save @types/hapi__subtext
This package contains type definitions for @hapi/subtext (https://github.com/hapijs/subtext#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__subtext.
/// <reference types="node" />
import { IncomingMessage } from "http";
import stream = require("stream");
import { BrotliOptions, ZlibOptions } from "zlib";
export interface MultipartOptions {
output: "data" | "stream" | "file";
}
export interface DecompressionOptions {
gzip?: ZlibOptions;
deflate?: ZlibOptions;
br?: BrotliOptions;
compress?: BrotliOptions;
}
export interface ContentDecoders {
gzip?: (options: ZlibOptions | null) => stream.Transform;
deflate?: (options: ZlibOptions | null) => stream.Transform;
br?: (options: BrotliOptions | null) => stream.Transform;
compress?: (options: BrotliOptions | null) => stream.Transform;
}
export interface Options {
parse: boolean;
output: "data" | "stream" | "file";
maxBytes?: number;
override?: string;
defaultContentType?: string;
allow?: string[];
timeout?: number;
querystring?: (str: string) => Partial<Record<string, string | string[]>>;
uploads?: string;
multipart?: boolean | MultipartOptions;
decoders?: ContentDecoders;
compression?: DecompressionOptions;
}
export interface Result {
/**
* Will be `null` if no payload was present on request
*/
payload: unknown;
mime: string;
}
export function parse(req: IncomingMessage, tap: null | NodeJS.WritableStream, options: Options): Promise<Result>;
These definitions were written by Sebastian Malton.
FAQs
TypeScript definitions for @hapi/subtext
The npm package @types/hapi__subtext receives a total of 471 weekly downloads. As such, @types/hapi__subtext popularity was classified as not popular.
We found that @types/hapi__subtext demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.