From 559771a80cf779dc13a84ecd2f178e6ca5a8353a Mon Sep 17 00:00:00 2001 From: FUYU <fuyu@prec-tech.com> Date: 星期五, 19 五月 2023 15:52:16 +0800 Subject: [PATCH] 备份省目标录入 --- .sfdx/typings/lwc/engine.d.ts | 24 +++++++++++++++++++++--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.sfdx/typings/lwc/engine.d.ts b/.sfdx/typings/lwc/engine.d.ts index e2aa0b5..85bb88f 100644 --- a/.sfdx/typings/lwc/engine.d.ts +++ b/.sfdx/typings/lwc/engine.d.ts @@ -126,6 +126,20 @@ compareDocumentPosition(otherNode: Node): number; contains(otherNode: Node): boolean; elementFromPoint(x: number, y: number): Element | null; + querySelector<K extends keyof HTMLElementTagNameMap>( + selectors: K + ): HTMLElementTagNameMap[K] | null; + querySelector<K extends keyof SVGElementTagNameMap>( + selectors: K + ): SVGElementTagNameMap[K] | null; + querySelector<E extends Element = Element>(selectors: string): E | null; + querySelectorAll<K extends keyof HTMLElementTagNameMap>( + selectors: K + ): NodeListOf<HTMLElementTagNameMap[K]>; + querySelectorAll<K extends keyof SVGElementTagNameMap>( + selectors: K + ): NodeListOf<SVGElementTagNameMap[K]>; + querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>; } /** @@ -176,11 +190,15 @@ /** * Decorator factory to wire a property or method to a wire adapter data source - * @param getType imperative accessor for the data source - * @param config configuration object for the accessor + * @param adapter the adapter used to provision data + * @param config configuration object for the adapter */ - export function wire(getType: (config?: any) => any, config?: any): PropertyDecorator; + export function wire( + adapter: WireAdapterConstructor | LegacyWireAdapterConstructor, + config?: WireConfigValue + ): PropertyDecorator; + type LegacyWireAdapterConstructor = (config?: any) => any; type WireConfigValue = Record<string, any>; type ContextValue = Record<string, any>; -- Gitblit v1.9.1