Skip to content

Commit

Permalink
fix(form-core): fix type definition file types for styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Joren Broekema committed Nov 10, 2020
1 parent acbd1aa commit cf0967f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-birds-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lion/form-core': patch
---

Fix type definition file for CSSResultArray
5 changes: 3 additions & 2 deletions packages/form-core/types/FormControlMixinTypes.d.ts
Original file line number Diff line number Diff line change
@@ -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 { Constructor } from '@open-wc/dedupe-mixin';
import { DisabledHost } from '@lion/core/types/DisabledMixinTypes';
Expand All @@ -11,7 +12,7 @@ declare interface HTMLElementWithValue extends HTMLElement {
}

export declare class FormControlHost {
static get styles(): CSSResult | CSSResult[];
static get styles(): CSSResultArray;
static get properties(): {
name: {
type: StringConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
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';

export interface ChoiceInputModelValue {
Expand Down Expand Up @@ -29,7 +30,7 @@ export declare class ChoiceInputHost {

updated(changedProperties: Map<string, any>): void;

static get styles(): CSSResult | CSSResult[];
static get styles(): CSSResultArray;

render(): TemplateResult;

Expand Down

0 comments on commit cf0967f

Please sign in to comment.