Skip to content

MetadataCache.iterateRefsForFile method

MetadataCache › iterateRefsForFile

Unofficial

Iterate over all references for a specific file.

Signature:

iterateRefsForFile(path: string, callback: (reference: ReferenceCache) => void): void

Parameters:

Parameter Type Description
path string The file path to iterate references for.
callback (reference: ReferenceCache) => void The callback to execute for each reference.

Returns: void