Skip to content

@modoki/engine / index / isInternalAssetPath

Function: isInternalAssetPath() ​

isInternalAssetPath(ref): boolean

Returns true if ref is a project-internal asset path (starts with / and ends with a managed asset extension). These are no longer valid references — everything must be a GUID. Used to reject path refs loudly.

Parameters ​

ref ​

string | null | undefined

Returns ​

boolean

Built with Modoki.