UNPKG

svelte-search-engine

Version:

A wrapper for Google's Programmable Search Engine, providing a Svelte-friendly interface.

11 lines (10 loc) 293 B
import type { Component } from 'svelte'; import type { Promotion, Result } from './search'; export type SearchEngineComponent = Component<{ promos?: Promotion[]; results: Result[]; }>; export type UIComponents = { web?: SearchEngineComponent; image?: SearchEngineComponent; };