View on GitHub

js-ts-monorepos

Home > @shlack/utils

utils package

Classes

Class Description
Deferred An “inverted” promise, that can be resolved from the outside
HTTPError An error that’s associated with a HTTP response status code

Enumerations

Enumeration Description
HTTPErrorKind High-level outcome of an HTTP status code

Functions

Function Description
apiCall(path, init) Make a same-origin GET request to the API
formatTimestamp(date) Format a timestamp as a string
stringifyError(errorDescription, err) Stringify a thrown value
useAsyncDataEffect(getData, options)  

Type Aliases

Type Alias Description
RejectHandler  
ResolveHandler