Skip to main content

Interface: ResourceConfig

Utils.ResourceConfig

An interface representing the configuration of a resource, including its path and optional callbacks.

Properties

onLoad

onLoad: (result: unknown) => void

Type declaration

▸ (result): void

A callback function to be called when the resource is successfully loaded.

Parameters
NameType
resultunknown
Returns

void

Defined in

src/utils/Asset.ts:46


path

path: string

The path to the resource that needs to be loaded.

Defined in

src/utils/Asset.ts:42