Skip to content

Extend test to cover S.union with S.array #36

@schickling

Description

@schickling

There might be an edge case when combining S.union with S.array so it would be great to extend the test cases to check for this.

e.g. a code snippet from my current project:

  export const Root = S.union({ RawInlineCategoryItem, RawItems: S.array(RawItem) })
  export type Root = RawInlineCategoryItem | RawItem[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions