T

MetroSearchOptions

Public options accepted by find and the findBy* family.

type MetroSearchOptions = { … }

Members

all?boolean

Returns every match as an array instead of the first match; false when omitted.

cache?boolean

Searches modules earlier searches found before scanning the whole registry; true when omitted.

cacheOnly?boolean

Searches only the modules cached for this filter and never scans the registry; false when omitted.

esModules?boolean

Also tests each module's default export when its exports do not match; true when omitted.

Matches an all search starts from; the search sets it itself when it rescans past the cache.

Runs modules that have not loaded yet so they can be searched; false skips them. true when omitted.

interop?boolean

Returns the default export rather than the whole module when default matched; true when omitted.

lazy?boolean

Returns a proxy that runs the search on first access instead of now.

raw?boolean

Returns the Metro module record instead of its exports; false when omitted.