Skip to content
@breadstone/ziegel-core Auto-generated

@breadstone/ziegel-core

Namespaces

NamespaceDescription
AnyExtensions-
ArrayExtensions-
ColorExtensionsColor extensions.
DateExtensions-
DayOfWeek-
DayOfWeekName-
Defaults-
FunctionConstructorExtensions-
FunctionExtensions-
MapExtensions-
Nullable-
NumberConstructorExtensions-
NumberExtensions-
ObjectExtensions-
Optional-
StringConstructorExtensions-
StringExtensions-

Enumerations

EnumerationDescription
DateTimeKind-
DayOfWeekA enum that represents the day of week.
MonthA Month value enum.
PasswordScore-

Classes

ClassDescription
AnonymousDisposableRepresents a disposable resource that can be disposed with a custom action.
ArgumentExceptionException class for invalid arguments to a method. The ArgumentException is thrown when an argument does not meet the contract of the method. Ideally it should give a meaningful error message describing what was wrong and which parameter is incorrect.
ArgumentFormatExceptionException class for invalid argument formats to a method.
ArgumentNullExceptionException class for null arguments to a method. The ArgumentNullException is thrown when an argument is null when it shouldn't be.
ArgumentOutOfRangeExceptionException class for method arguments outside of the legal range. The ArgumentOutOfRangeException is thrown when an argument is outside the legal range for that argument.
ArgumentTypeExceptionException class for invalid argument types to a method. The ArgumentTypeException is thrown when an argument does not match the expected type for
BagA Bag is a special kind of a Set in which members are allowed to appear more than once.
CMYKRepresents a color in the CMYK (Cyan, Magenta, Yellow, Key/Black) color model.
ColorRepresents a color in the RGB (Red, Green, Blue) color model.
ColorsColors - A collection of well-known Colors
CompositeDisposableRepresents a group of disposables that are disposed together.
ConsoleReprestents a wrapper for console calls.
DateRange-
DateTime-
DateTimeRange-
Deferred-
DisposableProvides static methods for creating disposable objects.
DuplicateKeyExceptionException class for duplicate keys in a collection. The DuplicateKeyException is thrown when an attempt is made to add a key to a collection that already contains that key.
EnumThe Enum class.
EventClass representing an event that can be subscribed to and invoked.
EventArgsClass representing the arguments for an event.
EventInvokerClass that allows for the invocation of events with specific arguments.
ExceptionThe base class for all exceptional conditions.
FormatExceptionException class for format errors.
FormatsA class that manages format providers for formatting values.
GuardUtility class for validating method arguments. The Guard class provides static methods to validate method arguments and throw appropriate exceptions if the validation fails.
Guid-
HashAlgorithm-
HeapA heap is a binary tree, where the nodes maintain the heap property: each node is smaller than each of its children and therefore a MinHeap This implementation uses an array to store elements.
HSBRepresents a color in the HSB (Hue, Saturation, Brightness) color model.
HSLRepresents a color in the HSL (Hue, Saturation, Luminance) color model.
IndexOutOfRangeExceptionException class for index out of range errors. The IndexOutOfRangeException is thrown when an index is outside the bounds of an array or collection.
IntervalRepresents a timer that executes a handler at specified intervals.
InvalidOperationExceptionException class for denoting an object was in a state that made calling a method illegal. * The InvalidOperationException is thrown when a method call is invalid for the object's current state.
KeyNotFoundExceptionException class for denoting an object was in a state that made calling a method illegal. * The KeyNotFoundException is thrown when a key is not found in a collection or dictionary.
KeyValuePair-
LazyThe Lazy class.
LinkedList-
LinqSimplest abstraction for building an extensible iterable query.
MD5-
MD5CryptoServiceProvider-
NotFoundExceptionException class for denoting an object was not found. * The NotFoundException is thrown when an object or resource is not found.
NotImplementedExceptionException thrown when a requested method or operation is not implemented. The NotImplementedException is used to indicate that a method or operation has not been implemented yet.
NotSupportedExceptionException class for methods or operations that are not supported. The NotSupportedException is thrown when a method or operation is not supported by the current implementation.
NullReferenceExceptionException class for null reference errors. The NullReferenceException is thrown when an operation is attempted on a null reference.
NumberRangeRepresents a range of numbers.
OverflowExceptionException class for overflow errors. The OverflowException is thrown when an arithmetic operation exceeds the limits of the data type.
PasswordStrengthValidator-
QueueA queue is a First-In-First-Out (FIFO) data structure, the first element added to the queue will be the first one to be removed. This implementation uses a linked list as a container.
RandomA random number generator.
RangeAbstract class representing a range of values.
RegexPatterns-
RGBRepresents a color in the RGB (Red, Green, Blue) color model.
SetA set is a data structure that contains no duplicate items.
SHA1-
SHA1CryptoServiceProvider-
SRRepresents the internal string resources.
StackA Stack is a Last-In-First-Out (LIFO) data structure, the last element added to the stack will be the first one to be removed. This implementation uses a linked list as a container.
StopwatchA simple stopwatch implementation that can be used to measure elapsed time. It provides methods to start, stop, reset, and restart the stopwatch. The elapsed time can be retrieved in milliseconds.
StringBuilderA mutable string builder that allows for efficient string concatenation.
StringFormatterA formatter for strings that allows for formatting with named values.
TimeSpan-
TimeSpanRange-
TypeGuardUtility class for type checking. The TypeGuard class provides static methods to check the type of a value.
ValueEventArgsClass representing the arguments for an event that carries a value.
Version-
YUVRepresents a color in the YUV (Luminance, Chrominance) color model.

Interfaces

InterfaceDescription
ICancelableDisposable resource with disposal state tracking.
ICMYKInterface representing a CMYK color model.
IConstructableInterface for a constructable type.
IDisposableInterface for disposable objects.
IEquatableInterface for objects that can be compared for equality with other objects of the same type.
IEventArgsInterface representing the arguments for an event.
IFormatInterface for formatting values.
IFormatProviderInterface for a format provider.
IFormattableInterface for objects that can be formatted as strings.
IHSBInterface representing a color in the HSB (Hue, Saturation, Brightness) color model.
IHSLInterface representing a color in the HSL (Hue, Saturation, Luminance) color model.
IIndexerAn interface that defines an indexer for both string and number keys.
INumberIndexerAn interface that defines an indexer for number keys.
IObservableInterface for observable objects that can be subscribed to by observers.
IObserverInterface for observers that can receive notifications from observables.
IRangeInterface representing a range of values.
IRGBInterface representing a color in the RGB (Red, Green, Blue) color model.
IStringableInterface for objects that can be converted to a string representation.
IStringIndexerAn interface that defines an indexer for string keys.
ISupportRepresents a support for different system api's.
ITimeSpanRepresents the ITimeSpan interface.
IYUVInterface representing a color in the YUV color model.

Type Aliases

Type AliasDescription
Action-
Action1-
Action2-
Action3-
Action4-
Action5-
Action6-
Action7-
Action8-
Class-
Constructor-
DayOfWeekNameA type that represents the day of week name.
DeepPartialA type that makes all properties and deep properties partial.
DeepRequiredA type that makes all properties and deep properties required.
Diff-
Func-
Func1-
Func2-
Func3-
Func4-
Func5-
Func6-
Func7-
Func8-
IEventCallbackInterface for an event callback function.
Indexable-
IStandardFormatterInterface for standard formatters that convert values to strings.
JsonArray-
JsonObject-
JsonPrimitive-
JsonValue-
MatchingKeys-
MemberLavesA type that detects all property laves of a object.
MemberPathsA type that detects all property paths of a object.
Merge-
NonEmptyArrayA type of a non empty array.
NonOptional-
NonUndefined-
Nullable-
ObservableLikeRepresents a value that can be either a plain value or an observable.
Omit-
Optional-
Overwrite-
Predicate-
PrototypeableType alias for a prototype.
RangeLikeRepresents a range like object.
ReturnValueConstraintA contsraint for return values.
ReturnValueErrorConstraintA contsraint for return values with error.
Undefinable-
Unwrap-
WithRequired-

Variables

VariableDescription
DAY_OF_WEEKA array that contains all days of a week.
DAY_OF_WEEK_NAMESA array that contains all day names of a week.

Functions

FunctionDescription
aggregateAn iterable transform that applies an accumulator function over a sequence. The specified initialValue is used as the initial accumulator value, and the specified function is used to select the result value. If no initialValue is specified, the first entry in the sequence is used.
allAn iterable transform that resolves false if the predicate ever returns false. Otherwise true.
anyAn iterable transform that resolves true if the predicate ever returns true. Otherwise false. If no predicate is provided, will resolve true if the sequence is not empty.
appendAn iterable filter that bypasses a specified number of elements in a sequence and then returns the remaining elements.
asArrayReturns an array (copy) of all the elements in a sequence if the sequence isn't already an array. If the sequence is an array, it's returned as is.
ascendingDefault ascending sort delegate for primitive only iterables.
averageReturns the average of a sequence of numbers.
bufferAn iterable filter that (once started) pre-fetches entries from the source up to the size.
concatConcatenates the provided sequences.
containsAn iterable transform that resolves true if the provided sequence contains the entry. Otherwise false.
countReturns the number of entries in a sequence.
defaultIfEmptyA iterable filter that returns the elements of the specified sequence or the specified value in a collection if the sequence is empty.
DelayA decorator delays a method with a setTimeout function. decorator usage as MethodDecorator.
descendingDefault descending sort delegate for primitive only iterables.
distinctAn iterable filter that returns distinct elements from a sequence.
elementAtProduces a function that returns the element at a specified index in a sequence.
elementAtOrDefaultProduces a function that returns the element at a specified index in a sequence or a default value if out of bounds.
emptyAn iterable that yields no elements.
excludeAn iterable filter that returns all elements except for any in the exclusion sequence.
firstReturns the first element of a sequence.
firstOrDefaultAn iterable transform that returns the first element of a sequence, or a default value if no element is found.
fromDisposableCreate an observable from a disposable.
groupByAn iterable filter that groups the elements of a sequence according to a specified key selector function and creates an iterable from each group and its key.
hasAnyReturns true if the sequence is not empty.
indexOfAn iterable transform that resolves true if the provided sequence contains the value. Otherwise false.
isClass-
isCMYK-
isConstructor-
isEmptyReturns true if the sequence is empty.
isHSB-
isHSL-
isNonEmptyArrayA non empty array type guard function
isNotNullableType guard that checks of not null.
isNotOptionalType guard that checks of not null and undefined.
isNotUndefined-
isNullableType guard that checks of null.
isObservableLikeChecks if a value is an observable-like type.
isOptionalType guard that checks of null and undefined.
isPrototypeableType guard to check a prototype.
isRangeLikeThe isRangeLike() method determines whether an object is an RangeLike This function returns true if the object is an RangeLike, and false if not.
isRGB-
isUndefined-
isYUV-
iterateIndexesReturns an iterator that iterates the provided ArrayLike using length and index.
joinStringsJoins a set of strings using the provided separator.
lastReturns the first element of a sequence.
lastIndexOfAn iterable transform that resolves true if the provided sequence contains the value. Otherwise false.
lastOrDefaultAn iterable transform that returns the last element of a sequence, or a default value if no element is found.
linqConverts any iterable into a LINQ style iterable. Import filters and transforms to create a query. Use a resolution to get a result.
maxReturns the entry in the sequence that has the highest/greatest value.
MemoizeA decorator that handle a method memorization. Decoration usage as MethodDecorator.
mergeConcatenates the sequences.
minReturns the entry in the sequence that has the lowest/least value.
notNullFilters out null values.
notNullOrUndefinedFilters out null or undefined values.
notUndefinedFilters out undefined values.
ofTypeAn iterable filter that only returns elements of the type (constructor) provided. Example: Calling ofType(Number)(sequence) will filter all numbers.
onCompleteAn iterable filter that invokes the provided action if there are no more entries to iterate.
onErrorAn iterable filter that invokes the provided handler if there was an error while iterating. Any error while iterating assumes no more results and the iteration will be complete after the error. The handler can decide if it wants to rethrow the error or not.
onStartAn iterable filter that invokes the provided action before iterating results.
optionalOtherwiseReturns the otherwise value if a value is optional.
orderByAn iterable filter that orders elements by a primitive value provided by the key selector.
orderUsingAn iterable filter that orders elements by use of a comparison function.
otherwiseNullableReturns the otherwise value if a value is nullable.
panicThrows an exception with the provided message or error object.
patch-
prependAn iterable filter that bypasses a specified number of elements in a sequence and then returns the remaining elements.
productReturns the product (*) of a sequence of numbers. Returns NaN if sequence is empty or if any entries are NaN.
rangeGenerates a sequence of numbers within a specified range.
registerResourceRegisters a resource definition by name and target object.
repeatGenerates a sequence that contains one repeated value.
repeatSequenceGenerates a sequence that contains each value in the provided sequence and repeats.
reverseReturns an array (copy) of all the elements of a sequence in reverse order.
rowsReturns the rows from a given set of iterables representing columns.
sameReturns the sequence provided.
selectAn iterable filter that transforms (maps / projects) the output from the contained elements.
selectManyAn iterable filter that merges the output of contained iterables.
sequenceEqualResolves true if the sequences are equal.
singleReturns an entry from a singular sequence. Will throw if no elements or more than one.
singleOrDefaultReturns an entry from a singular sequence or a default value if empty. Throws if more than one entry.
skipAn iterable filter that bypasses a specified number of elements in a sequence and then returns the remaining elements.
skipLastAn iterable filter that returns everything from the sequence except the last count of items.
skipUntilAn iterable filter that bypasses elements in sequence until the predicate condition returns is true. Inverse of skipWhile.
skipWhileAn iterable filter that bypasses elements in sequence while the predicate condition is true and if false will iterate the rest. Inverse of skipUntil.
sumReturns the sum (+) of a sequence of numbers. Returns 0 if sequence is empty. Returns NaN if any entries are NaN.
sumAndCountReturns the sum .value of a sequence and the number of entries .count.
takeAn iterable filter that returns a specified number of contiguous elements from the start of a sequence.
takeLastAn iterable filter that returns a specified number of contiguous elements from the start of a sequence.
takeUntilAn iterable filter that will return results until the predicate condition is true.
takeWhileAn iterable filter that will return results while the predicate condition is true and stops when false.
toArrayReturns an array (copy) of all the elements in a sequence.
toMapReturns a map of all elements.
unfoldA generator function for creating entries based upon the previous entry.
unionProduces the set union of all sequences provided.
usingExecutes a function with a disposable object and ensures that the object is disposed after the function execution.
whereAn iterable filter that only returns elements that match the provided predicate.
zipProduces a sequence that is combination of the two sequences.

Released under the MIT License.