Skip to content

external and internal Args type #593

Closed

Description

@patricklx

Is it somehow possible to have external & internal args type definitions?

I have a component where some properties are mutable exclusive and have a type def for it like:

type Only<T, U> = {
  [P in keyof T]: T[P];
} & {
  [P in keyof U]?: never;
};

type Either<T, U> = Only<T, U> | Only<U, T>

then Args look like this:
type Args = Either<A,B>. which works fine when component is invoked, but in the components own template it fails to resolve the args, or rather it resolves all to never

Activity

  1. locked and limited conversation to collaborators on Jul 31, 2023
  2. converted this issue into a discussion #607 on Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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