Skip to main content
Module

x/rimbu/collection-types/set-custom/index.ts>RSetBase.ContextBase

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class RSetBase.ContextBase
implements [RSetBase.Context]<UT, Tp>
Abstract
import { RSetBase } from "https://deno.land/x/rimbu@0.14.0/collection-types/set-custom/index.ts";
const { ContextBase } = RSetBase;

Properties

abstract
readonly
_empty: (Tp & Elem<any>)["normal"]
readonly
_fixedElementType: any
readonly
_types: Tp
readonly
empty: <T extends UT>() => WithElem<Tp, T>["normal"]
readonly
from: any
readonly
of: <T extends UT>(...values: ArrayNonEmpty<T>) => T extends UT ? WithElem<Tp, T>["nonEmpty"] : never
readonly
reducer: <T extends UT>(source?: StreamSource<T>) => Reducer<T, WithElem<Tp, T>["normal"]>
abstract
readonly
typeTag: string

Methods

abstract
builder<T extends UT>(): WithElem<Tp, T>["builder"]
abstract
isNonEmptyInstance<T>(source: any): source is WithElem<Tp, T>["nonEmpty"]
abstract
isValidValue(value: any): value is UT