assetIdFromPath
assetIdFromPath(
path):string
Defined in: packages/declarative-hex-worlds/src/asset-source/scan.ts:80
Derive a stable asset id from a path: the basename without extension, slug-safe.
Returns '' when the basename has no stem (e.g. a dotfile like .glb, whose
only . starts the name) — the scanner treats an empty id as unclassifiable
and routes it to skipped rather than emitting an id the spec schema rejects.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string