Skip to content

cascade doesn't support isHexColor #41

@ahaoboy

Description

@ahaoboy
const isColor =  t.cascade (t.isHexColor({ alpha: true }))

Argument of type 'LooseValidator<string, string>' is not assignable to parameter of type 'AnyStrictValidator'.
  Type 'LooseValidator<string, string>' is not assignable to type 'StrictTest<any, any>'.
    Signature '(value: string, test?: ValidationState | undefined): boolean' must be a type predicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions