@types/express-partial-response
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Installation

npm install --save @types/express-partial-response

Summary

This package contains type definitions for express-partial-response (https://github.com/nemtsov/express-partial-response#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-partial-response.

import type { RequestHandler } from "express";

declare namespace expressPartialResponse {
    interface Options {
        /**
         * The query parameter name to use for the fields mask
         * @default "fields"
         */
        query?: string | undefined;
    }
}

/**
 * Creates a middleware that enables partial responses using JSON Mask
 *
 * @param options Configuration options for the middleware
 * @returns Express middleware function
 */
declare function expressPartialResponse(options?: expressPartialResponse.Options): RequestHandler;

export = expressPartialResponse;

Additional Details

  • Last updated: Sat, 17 May 2025 01:29:43 GMT
  • Dependencies: @types/express

Credits

These definitions were written by Jimmy Leung.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/express-partial-response

Weekly Downloads

89

Version

1.0.0

License

MIT

Unpacked Size

3.97 kB

Total Files

5

Last publish

Collaborators

  • types