import * as rimbu from "https://deno.land/x/rimbu@1.0.2/deep/mod.ts";
Variables
Regular expression used to split a path string into tokens. | |
Regular expression used to split a path string into tokens. |
Functions
Returns the value resulting from selecting the given | |
Returns a function that gets the value at the given string | |
Returns true if the given | |
Returns true if the given | |
Returns a function that matches a given | |
Returns a function that matches a given | |
Returns an immutably updated version of the given
| |
Patches the value at the given path in the source to the given value.
Because the path to update must exist in the | |
Returns a function that patches a given | |
Returns a function that patches a given | |
Return the given | |
Returns the same value wrapped in the | |
Returns the result of applying the given | |
Returns the result of applying the given | |
Returns a function that selects a certain shape from a given | |
Returns a function that selects a certain shape from a given | |
Returns a curried API with a known target type. This can be useful for using the methods in contexts where the target type can be inferred from the usage. | |
Returns the value resulting from selecting the given | |
Returns a function that gets the value at the given string | |
Returns true if the given | |
Returns true if the given | |
Returns a function that matches a given | |
Returns a function that matches a given | |
Returns an immutably updated version of the given
| |
Patches the value at the given path in the source to the given value.
Because the path to update must exist in the | |
Returns a function that patches a given | |
Returns a function that patches a given | |
Return the given | |
Returns the same value wrapped in the | |
Returns the result of applying the given | |
Returns the result of applying the given | |
Returns a function that selects a certain shape from a given | |
Returns a function that selects a certain shape from a given | |
Returns the given | |
Returns a Tuple containing the elements of given | |
Returns the first element of a Tuple. | |
Returns the item at the given | |
Returns a Tuple containing all but the last element of the given | |
Returns the last element of a Tuple. | |
Convenience method to type Tuple types | |
Returns the second element of a Tuple. | |
Returns a Tuple containing all but the first element of the given | |
Returns a copy of the given | |
Returns a curried API with a known target type. This can be useful for using the methods in contexts where the target type can be inferred from the usage. |
Interfaces
Typed and curried Deep API, used in situations where the target type is known but the value will be applied later. | |
Typed and curried Deep API, used in situations where the target type is known but the value will be applied later. |
Type Aliases
The type to determine the allowed input values for the | |
The type that determines allowed matchers for arrays/tuples. | |
Keys used to indicate an array match traversal. | |
Defines an object containing exactly one | |
Compount matcher for objects, can only be an array staring with a compound type keyword. | |
Compound keys used to indicate the type of compound. | |
Determines the various allowed match types for given type | |
Utility type for collecting match failure reasons | |
Type used to determine the allowed function types. Always includes booleans. | |
The type that determines allowed matchers for objects. | |
The type to determine allowed matchers for object properties. | |
Defines an object containing exactly one | |
Type used to indicate an object containing matches for tuple indices. | |
A type that either directly results in result type | |
A type to determine the allowed input type for the | |
The entry type for a (nested) patch. Can be either a patch object or a function accepting the nested patch function and returning a patch object. | |
A function patch type that is a function taking the current value, the parent and root values, and returns a return value. | |
Utility type to exclude Iterable types. | |
A type defining the allowed patch values for objects. | |
A type defining the allowed patch values for object properties. | |
A type defining the allowed patch values for tuples. | |
Either result type S, or a patch function with the value type, the parent type, and the root type. | |
A string representing a path into an (nested) object of type T. | |
Utility type to only add non-empty string types to a string array. | |
Determines the allowed paths for an array. | |
Determines the allowed paths into a value of type | |
Determines whether the given type | |
Returns type | |
Determines the allowed non-empty paths into a value of type | |
Determines the allowed paths into a non-optional value of type | |
Determines the allowed paths for an object. | |
Determines the allowed path part seperator based on the input types. | |
Determines the allowed paths for a tuple. Since tuples have fixed types, they do not need to be optional, in contrast to arrays. | |
The result type when selecting from object type T a path with type P. | |
Determines the result type for an array of tokens representing subpaths in type | |
Determines the result of getting the property/index | |
Converts a path string into separate tokens in a string array. | |
A string representing a path into an (nested) object of type T. | |
The allowed values of a split path. | |
A deep readonly typed version of given type T. Makes all properties or elements read only. It maps types using the following rules:
| |
Type defining the allowed selectors on an object of type
| |
Type defining the result type of applying the SL selector type to the T value type. | |
Type defining the shape of allowed selectors, used to improve compiler checking. | |
The type to determine the allowed input values for the | |
The type that determines allowed matchers for arrays/tuples. | |
Keys used to indicate an array match traversal. | |
Defines an object containing exactly one | |
Compount matcher for objects, can only be an array staring with a compound type keyword. | |
Compound keys used to indicate the type of compound. | |
Determines the various allowed match types for given type | |
Utility type for collecting match failure reasons | |
Type used to determine the allowed function types. Always includes booleans. | |
The type that determines allowed matchers for objects. | |
The type to determine allowed matchers for object properties. | |
Defines an object containing exactly one | |
Type used to indicate an object containing matches for tuple indices. | |
A type that either directly results in result type | |
A type to determine the allowed input type for the | |
The entry type for a (nested) patch. Can be either a patch object or a function accepting the nested patch function and returning a patch object. | |
A function patch type that is a function taking the current value, the parent and root values, and returns a return value. | |
Utility type to exclude Iterable types. | |
A type defining the allowed patch values for objects. | |
A type defining the allowed patch values for object properties. | |
A type defining the allowed patch values for tuples. | |
Either result type S, or a patch function with the value type, the parent type, and the root type. | |
A string representing a path into an (nested) object of type T. | |
Utility type to only add non-empty string types to a string array. | |
Determines the allowed paths for an array. | |
Determines the allowed paths into a value of type | |
Determines whether the given type | |
Returns type | |
Determines the allowed non-empty paths into a value of type | |
Determines the allowed paths into a non-optional value of type | |
Determines the allowed paths for an object. | |
Determines the allowed path part seperator based on the input types. | |
Determines the allowed paths for a tuple. Since tuples have fixed types, they do not need to be optional, in contrast to arrays. | |
The result type when selecting from object type T a path with type P. | |
Determines the result type for an array of tokens representing subpaths in type | |
Determines the result of getting the property/index | |
Converts a path string into separate tokens in a string array. | |
A string representing a path into an (nested) object of type T. | |
The allowed values of a split path. | |
A deep readonly typed version of given type T. Makes all properties or elements read only. It maps types using the following rules:
| |
Type defining the allowed selectors on an object of type
| |
Type defining the result type of applying the SL selector type to the T value type. | |
Type defining the shape of allowed selectors, used to improve compiler checking. | |
A readonly array of fixed length and types. | |
Returns the indices/keys that are in a tuple. | |
A non-empty readonly array that can serve as a source for a Tuple. | |
A readonly array that can serve as a source for a Tuple. |