This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Task<T> = () => T | Promise<T>; | |
type Mapper<T, R> = (instance: LoadingInstance<T>) => R; | |
interface LoadingInstance<T> { | |
result: T | undefined; | |
loading: boolean; | |
loadingError: Error | null; | |
reload: () => void; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am danfma on github. | |
* I am danfma (https://keybase.io/danfma) on keybase. | |
* I have a public key ASBKKEWNYtwUqbbmnquouMg2s4otEOMVOEqDW_zOJwhQoQo | |
To claim this, I am signing this object: |