UNPKG

@tarojs/taro-h5

Version:
26 lines (25 loc) 931 B
/// <reference types="types/api" /> import Taro from '@tarojs/api'; import { NodesRef } from './nodesRef'; interface ISelectorQueryQueue { component: TaroGeneral.IAnyObject; selector: string; single: boolean; fields: any; } type TSelectorQueryQueueCallback = (res: ISelectorQueryQueue) => void; export declare class SelectorQuery implements Taro.SelectorQuery { _defaultWebviewId: string | null; _webviewId: string | null; _queue: ISelectorQueryQueue[]; _queueCb: (TSelectorQueryQueueCallback | null)[]; _component?: TaroGeneral.IAnyObject; constructor(); in(component: TaroGeneral.IAnyObject): this; select(selector: string): NodesRef; selectAll(selector: string): NodesRef; selectViewport(): NodesRef; exec(cb: any): Taro.NodesRef; _push(selector: string, component: any, single: any, fields: any, callback?: TSelectorQueryQueueCallback | null): void; } export {};