Skip to content

getObsidianSearchQueryConstructor

Unofficial

Get the ObsidianSearchQuery constructor.

The class has no reachable instance until a query is compiled, so a throwaway file explorer view is created on a temporary leaf, a probe filter query is compiled through it, and the constructor is read off the result. The leaf is detached before returning.

Import:

import { getObsidianSearchQueryConstructor } from '@obsidian-typings/obsidian-public-latest/implementations';

Signature:

function getObsidianSearchQueryConstructor(app: App): ExtractConstructor<ObsidianSearchQuery>

Parameters:

Parameter Type Description
app App The app instance.

Returns: ExtractConstructor<ObsidianSearchQuery> — The ObsidianSearchQuery constructor.


Links to this page: