fix(overlays): typescript errors

Corrects typescript from `@popperjs/core` for overlays package
This commit is contained in:
Benny Powers 2021-01-12 13:17:57 +02:00 committed by Thomas Allmer
parent 70bfeba9d1
commit a7760b64cb
2 changed files with 7 additions and 3 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/overlays': patch
---
Fix type declaration for \_\_syncFromPopperState method.

View file

@ -1,8 +1,7 @@
import { Constructor } from '@open-wc/dedupe-mixin';
import { LitElement, TemplateResult } from '@lion/core';
import { CSSResultArray } from '@lion/core';
import Data from 'popper.js';
import { Options as PopperOptions } from '@popperjs/core/lib/popper';
import { Options as PopperOptions, State } from '@popperjs/core/lib/popper';
import { OverlayConfig } from '../types/OverlayConfig';
export declare class ArrowHost {
@ -25,7 +24,7 @@ export declare class ArrowHost {
_getPopperArrowConfig(popperConfigToExtendFrom: Partial<PopperOptions>): Partial<PopperOptions>;
__setupRepositionCompletePromise(): void;
get _arrowNode(): Element | null;
__syncFromPopperState(data: Data): void;
__syncFromPopperState(data: Partial<State>): void;
}
export declare function ArrowImplementation<T extends Constructor<LitElement>>(