Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / SharedModelVersionResolver

Type Alias: SharedModelVersionResolver ​

ts
type SharedModelVersionResolver = (url) => string | undefined | Promise<string | undefined>;

Defined in: utils/modelCache.ts:120

Says which version of the file at url is current, e.g. its modification time. A different answer than the loaded copy had means the file changed, so the next placement loads it again. undefined when it can't tell.

Parameters ​

ParameterType
urlstring

Returns ​

string | undefined | Promise<string | undefined>