Asset<D>:

An asset is a resource that is loaded asynchronously.

onLoad(action: (data: D)=>void): this

onError(action: (err: Error)=>void): this

then(action: (data: D)=>void): Asset<D>

catch(action: (err: Error)=>void): Asset<D>

finally(action: ()=>void): Asset<D>