Merge pull request #1087 from ing-bank/fix/css-types

fix(form-core): fix type definition file types for styles
This commit is contained in:
Joren Broekema 2020-11-10 14:24:50 +01:00 committed by GitHub
commit 7720e60aa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 4 deletions

View file

@ -0,0 +1,5 @@
---
'@lion/form-core': patch
---
Fix type definition file for CSSResultArray

View file

@ -1,4 +1,5 @@
import { CSSResult, LitElement, nothing, TemplateResult } from '@lion/core'; import { CSSResultArray } from 'lit-element';
import { LitElement, nothing, TemplateResult } from '@lion/core';
import { SlotsMap, SlotHost } from '@lion/core/types/SlotMixinTypes'; import { SlotsMap, SlotHost } from '@lion/core/types/SlotMixinTypes';
import { Constructor } from '@open-wc/dedupe-mixin'; import { Constructor } from '@open-wc/dedupe-mixin';
import { DisabledHost } from '@lion/core/types/DisabledMixinTypes'; import { DisabledHost } from '@lion/core/types/DisabledMixinTypes';
@ -11,7 +12,7 @@ declare interface HTMLElementWithValue extends HTMLElement {
} }
export declare class FormControlHost { export declare class FormControlHost {
static get styles(): CSSResult | CSSResult[]; static get styles(): CSSResultArray;
static get properties(): { static get properties(): {
name: { name: {
type: StringConstructor; type: StringConstructor;

View file

@ -1,5 +1,6 @@
import { Constructor } from '@open-wc/dedupe-mixin'; import { Constructor } from '@open-wc/dedupe-mixin';
import { CSSResult, LitElement, TemplateResult } from '@lion/core'; import { LitElement, TemplateResult } from '@lion/core';
import { CSSResultArray } from 'lit-element';
import { FormatHost } from '../FormatMixinTypes'; import { FormatHost } from '../FormatMixinTypes';
export interface ChoiceInputModelValue { export interface ChoiceInputModelValue {
@ -29,7 +30,7 @@ export declare class ChoiceInputHost {
updated(changedProperties: Map<string, any>): void; updated(changedProperties: Map<string, any>): void;
static get styles(): CSSResult | CSSResult[]; static get styles(): CSSResultArray;
render(): TemplateResult; render(): TemplateResult;