Skip to content

issues with complex types for modifiers #930

@aklkv

Description

@aklkv

while trying to switch to v2 in jelhan/ember-style-modifier#323

I noticed that with following signature:

type CSSStyles =
  | Partial<CSS.Properties>
  | Partial<CSS.PropertiesHyphen>
  | { readonly [key: `--${string}`]: string };


export interface StyleModifierSignature {
  Element: Element & ElementCSSInlineStyle;
  Args: {
    Positional: CSSStyles[];
    Named: CSSStyles;
  };
}

errors no longer shown when incorrect value like number is passed in. maybe related to #886 or sounds more similar to #613

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions