@ng-doc/app
Version:
<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>
16 lines (13 loc) • 673 B
TypeScript
import { Provider } from '@angular/core';
import { NgDocSearchEngine } from '@ng-doc/app/classes/search-engine';
import { Constructor } from '@ng-doc/core/types';
/**
* Provides the `NgDocSearchEngine` to enable search in the documentation.
*
* You can create and provide your own `NgDocSearchEngine` if you want to handle the search yourself.
* @param engine - The search engine class.
* @param args - The arguments for the search engine class.
* @returns The provider for the search engine.
*/
declare function provideSearchEngine<E extends Constructor<NgDocSearchEngine>>(engine: E, ...args: ConstructorParameters<E>): Provider;
export { provideSearchEngine };