import * as actionify from "https://deno.land/x/actionify@0.3.0/src/deps/types.ts";
Functions
A generic function that, when given some branded type, can take a value with
the base type of the branded type, and cast that value to the branded type.
It fulfills the contract of a | |
f make | Produces a |
Interfaces
Matches a value that is like an Observable. | |
Type for TypeScript's |
Type Aliases
An | |
Create an async version of the given function type, by boxing the return type in | |
Unwrap the return type of a function that returns a | |
| |
A | |
A | |
Convert a string literal to camel-case. | |
Convert object properties to camel case but not recursively. | |
Convert object properties to camel case recursively. | |
Matches a | |
Exclude keys from a shape that matches the given | |
Extract the keys from a type where the value type of the key extends the given | |
Pick keys from the shape that matches the given | |
Matches a | |
Convert a string literal to a custom string delimiter casing. | |
Convert object properties to delimiter case but not recursively. | |
Convert object properties to delimiter case recursively. | |
Many collections have an | |
Many collections have an | |
Create a type that does not allow extra properties, meaning it only allows properties that are explicitly declared. | |
Create a type from an object type without certain keys. | |
A finite | |
Create a type that represents an array of the given type and length. The array's length and the | |
A | |
T Get | Get a deeply-nested property from an object using a key path, like Lodash's |
Creates a type that represents | |
Creates a type that represents | |
Returns a boolean for whether the given array includes the given item. | |
A | |
Create an invariant type, which is a type that does not accept supertypes and subtypes. | |
Get the element type of an | |
T Join | Join an array of strings and/or numbers using the given string as a delimiter. |
Matches a JSON array. | |
Matches a JSON object. | |
Matches any valid JSON primitive value. | |
Matches any valid JSON value. | |
Convert a string literal to kebab-case. | |
Convert object properties to kebab case but not recursively. | |
Convert object properties to kebab case recursively. | |
Extracts the type of the last element of an array. | |
Given a literal type return the Primitive | primitive type it belongs to, or | |
Allows creating a union type by combining primitive types and literal types without sacrificing auto-completion in IDEs for the literal type part of the union. | |
Merge two types into a new type. Keys of the second type overrides keys of the first type. | |
Create a type that has mutually exclusive keys. | |
Creates a type that represents a multidimensional array of the given type and dimension. | |
Creates a type that represents a multidimensional readonly array that of the given type and dimension. | |
A negative | |
A negative ( | |
Matches the hidden | |
A negative ( | |
A non-negative | |
A non-negative ( | |
Create an opaque type, which hides its internal details from the public, and can only be created by being used explicitly. | |
Extract all optional keys from the given type. | |
Type for npm's | |
Create a type from another type with all keys and nested keys set to optional. | |
Create a deep version of another type where all keys accepting | |
Converts a string literal to pascal-case. | |
Convert object properties to pascal case but not recursively. | |
Convert object properties to pascal case recursively. | |
Matches the hidden | |
Matches any primitive value. | |
Create a type that represents either the value or the value wrapped in | |
Convert | |
Create a type that represents a read-only tuple of the given type and length. | |
Remove any index signatures from the given object type, so that only explicitly defined properties remain. | |
Represents a string with some or all matches replaced by a replacement. | |
Create a type that requires all of the given keys or none of the given keys. The remaining keys are kept as is. | |
Create a type that requires at least one of the given keys. The remaining keys are kept as is. | |
Extract all required keys from the given type. | |
Create a type that requires exactly one of the given keys and disallows more. The remaining keys are kept as is. | |
Create a deep version of another object type where property values are recursively replaced into a given value type. | |
Convert a string literal to screaming-snake-case. | |
Create a type that makes the given keys optional. The remaining keys are kept as is. The sister of the | |
Create a type that makes the given keys required. The remaining keys are kept as is. The sister of the | |
Create a function type with a return type of your choice and the same parameters as the given function type. | |
Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability. | |
Convert a string literal to snake-case. | |
Convert object properties to snake case but not recursively. | |
Convert object properties to snake case recursively. | |
Represents an array of strings split using a given character or character set. | |
Mimic the type inferred by TypeScript when merging two objects using the spread operator. | |
Create a type with the keys of the given type changed to | |
Get keys of the given type as strings. | |
T Trim | Remove leading and trailing spaces from a string. |
Matches any typed array, like | |
Convert a union type to an intersection type using distributive conditional types. | |
Revert an opaque type back to its original type by removing the readonly | |
Create a union of the given object's values, and optionally specify which keys to get the values from. | |
Create a type that strips |