Link Search Menu Expand Document

HexColor overview

Added in v1.0.0


Table of contents


brand

HexColor

Signature

export declare const HexColor: t.BrandC<t.StringC, HexColorBrand>

Added in v1.0.0

decoders

hexColorDecoder

Signature

export declare const hexColorDecoder: <S extends string>() => D.Decoder<
  S,
  t.Branded<S, t.Branded<string, HexColorBrand>>
>

Added in v1.1.0

types

HexColor (type alias)

Signature

export type HexColor = t.Branded<string, HexColorBrand>

Added in v1.0.0

HexColorBrand (interface)

Signature

export interface HexColorBrand {
  readonly HexColor: unique symbol
}

Added in v1.0.0