Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/collection-types/set-custom/interface/base.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@1.1.0/collection-types/set-custom/interface/base.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