@mocanvas/editor · type

TLAnyAssetUtilConstructor

type TLAnyAssetUtilConstructor = TLAssetUtilConstructor<any, any>

Any asset util constructor, whatever asset type it handles.

The type a *list* of utils is declared as. TLAssetUtilConstructor<Asset> would not do: constructors are invariant in their asset type, so a list typed that way rejects every concrete util in it.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.