UNPKG

vue-json-search

Version:

Headless Vue (3.x) search component based on [Fuse.js](https://github.com/krisk/Fuse). Designed for static generators like [Hugo](https://github.com/gohugoio/hugo) but works with any site that's cabable of producing a JSON corpus.

31 lines (30 loc) 1.78 kB
import type { renderTag } from '../utils'; import type { FuseResult, SearchResultItem } from '../types'; import type { DefineComponent, ComponentOptionsMixin, EmitsOptions, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, Ref } from 'vue'; declare const _sfc_main: DefineComponent<{}, { searchTerm: Ref<string> | undefined; ResultTitle: DefineComponent<{}, { numResults: Ref<number> | undefined; resultsTitle: string | undefined; searchTerm: string | undefined; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>; ResultList: DefineComponent<{}, { results: Ref<FuseResult<SearchResultItem>[]> | undefined; ResultListItem: DefineComponent<{ result: { type: null; required: true; }; }, { showTags: boolean | undefined; tagRoot: string | undefined; renderTag: typeof renderTag; }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{ result: { type: null; required: true; }; }>>, {}>; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>; export default _sfc_main;