Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

@passport-next/http-types

Dependency-free, augmentable HTTP type contracts.

Used by Passport Next packages but meant to be agnostic to them.

Install

pnpm i @passport-next/http-types

Usage

import type {
  ConnectRequest,
  Middleware,
} from '@passport-next/http-types';

Applications can extend the common request contract with module augmentation:

import '@passport-next/http-types';

declare module '@passport-next/http-types' {
  interface Request {
    tenantId?: string;
  }
}

Request is framework-neutral. ConnectRequest adds the required, object-based header collection supplied by Node/Connect-style requests.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages