
Pinned Loading
-
A gist with examples of how to creat...
A gist with examples of how to create a higher-order component that receives a method with a generic spread variable parameter, and how to type constrain said spread 1/**
2* Example of a higher-order component with type-safety for functions with generic spread variables.
3* In this example, the HOC is a function to create AWS Lambda (for AWS API Gateway) function handlers.
4* All AWS Lambda exported handlers receive an (event, context) set of parameters.
5*
-
Example of a generic type alias that...
Example of a generic type alias that transforms a given type into a nullable type (including sub-properties in case of objects) 1/**
2* Type alias to recursively make all properties of an object optionally undefined or null.
3* Adds | undefined | null to all objects and its properties.
4*/
5type DeepNullable<T> = T extends object
-
-
-
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.