Installation
npm install --save @types/koa-subdomain
Summary
This package contains type definitions for koa-subdomain (https://github.com/keenwon/koa-subdomain#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-subdomain.
index.d.ts
import { Middleware } from "koa";
import { IMiddleware } from "koa-router";
declare namespace Subdomain {}
interface MatchResult {
middleware: IMiddleware;
wildcardSubdomains: string[];
}
declare class Subdomain {
constructor();
use(domain: string, router: IMiddleware): Subdomain;
routes(): Middleware;
match(subdomains: string[]): MatchResult | null;
}
export = Subdomain;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: @types/koa, @types/koa-router
Credits
These definitions were written by Jan Nöhles.