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:
commit
7720e60aa7
3 changed files with 11 additions and 4 deletions
5
.changeset/thin-birds-accept.md
Normal file
5
.changeset/thin-birds-accept.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'@lion/form-core': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix type definition file for CSSResultArray
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue