From b329ab986e250bb27e46ace97cf208f3b26d145a Mon Sep 17 00:00:00 2001 From: FUYU <fuyu@prec-tech.com> Date: 星期一, 18 十二月 2023 17:38:15 +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