New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/hapi__subtext

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/hapi__subtext

TypeScript definitions for @hapi/subtext

7.0.3
ts4.5
ts4.6
ts4.7
ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
latest
Source
npm
Version published
Maintainers
1
Created
Source

Installation

npm install --save @types/hapi__subtext

Summary

This package contains type definitions for @hapi/subtext (https://github.com/hapijs/subtext#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__subtext.

index.d.ts

/// <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>;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Sebastian Malton.

FAQs

Package last updated on 07 Nov 2023

Did you know?

Socket

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.

Install

Related posts