kaven-utils
Version:
Utils for Node.js.
29 lines (28 loc) • 1 kB
TypeScript
/********************************************************************
* @author: Kaven
* @email: kaven@wuwenkai.com
* @website: http://blog.kaven.xyz
* @file: [Kaven-Utils] /src/base/Types.ts
* @create: 2021-12-28 14:26:10.085
* @modify: 2025-10-14 22:58:04.883
* @version: 6.1.0
* @times: 14
* @lines: 32
* @copyright: Copyright © 2021-2025 Kaven. All Rights Reserved.
* @description: [description]
* @license: [license]
********************************************************************/
import * as http from "node:http";
import * as https from "node:https";
import { DefaultGetExternalIpByUPnPOptions } from "./Constants.js";
import { ILoggable } from "kaven-basic";
/**
* @since 2.0.14
* @version 2021-03-19
*/
export type HttpOrHttpsServer = http.Server | https.Server;
/**
* @since 5.0.3
* @version 2023-11-21
*/
export type GetExternalIpByUPnPOptions = Partial<typeof DefaultGetExternalIpByUPnPOptions> & ILoggable;