Types
potence provides a number of utility types and type guards for TypeScript users. This page lists them all.
| isEquatable() |
Type guard that checks whether a value is an |
| isIterable() |
Type guard that checks whether a value is an |
| isPrimitive() |
Type guard that checks whether a value is a primitive. |
| ArrayType |
Utility type that extracts the element type from an array type. |
| Callback |
Represents a function with one parameter and a generic return value. |
| Constructor |
Represents a constructible type (like a class). |
| Equatable |
An interface representing an object that has an |
| ExcludeProps |
Excludes from T the properties whose values are assignable to U. |
| Falsy |
Attempts to extract all falsy values from a type. |
| HexChar |
Represents a single character in the hexadecimal range (0-9, A-F/a-f). |
| Instantiable |
Represents an instantiable (“newable”) type. |
| Iterable |
An interface representing an object that can be iterated over. |
| Nullable |
Represents a type that may be |
| ObjectLiteral |
Represents an object with an index signature keyed to a |
| Predicate |
Represents a function with one parameter and a boolean return value. |
| Structure |
Represents an object structure that can be used in |
| Truthy |
Attempts to remove all falsy types from another type. |
| Typeof |
Utility type that transforms a |
| TypeofResult |
Represents the result of the |
| primitive |
Represents a primitive. |