Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

RefuseAsyncPainter

RefuseAsyncPainter<Paint> = [Extract<ReturnType<Paint>, PromiseLike<unknown>>] extends [never] ? unknown : object

A painter that returns a promise, or may, refused by its type: the texture uploads what the painter left when it returned.

Type Parameter
Paint extends (…args) => unknown