Link Search Menu Expand Document

PassportNumber overview

Added in v1.0.0


Table of contents


brands

PassportNumberBrand (interface)

Signature

export interface PassportNumberBrand {
  readonly PassportNumber: unique symbol
}

Added in v1.0.0

PassportNumberDEBrand (interface)

Signature

export interface PassportNumberDEBrand {
  readonly PassportNumberDE: unique symbol
}

Added in v1.0.0

PassportNumberFRBrand (interface)

Signature

export interface PassportNumberFRBrand {
  readonly PassportNumberFR: unique symbol
}

Added in v1.0.0

PassportNumberUSBrand (interface)

Signature

export interface PassportNumberUSBrand {
  readonly PassportNumberUS: unique symbol
}

Added in v1.0.0

decoders

passportDecoder

Signature

export declare const passportDecoder: <S extends string, B extends 'us' | 'fr' | 'de'>(
  locale: B
) => D.Decoder<S, string & t.Brand<PassportNumberBrand> & S & t.Brand<BrandMap[B]>>

Added in v1.1.0

types

PassportNumber (type alias)

Signature

export type PassportNumber = t.Branded<string, PassportNumberBrand>

Added in v1.0.0

PassportNumberDE (type alias)

Signature

export type PassportNumberDE = t.Branded<string, PassportNumberDEBrand>

Added in v1.0.0

PassportNumberFR (type alias)

Signature

export type PassportNumberFR = t.Branded<string, PassportNumberFRBrand>

Added in v1.0.0

PassportNumberUS (type alias)

Signature

export type PassportNumberUS = t.Branded<string, PassportNumberUSBrand>

Added in v1.0.0

utils

PassportNumber

Signature

export declare const PassportNumber: t.BrandC<t.StringC, PassportNumberBrand>

Added in v1.0.0

PassportNumberDE

Signature

export declare const PassportNumberDE: t.BrandC<t.StringC, PassportNumberDEBrand>

Added in v1.0.0

PassportNumberFR

Signature

export declare const PassportNumberFR: t.BrandC<t.StringC, PassportNumberFRBrand>

Added in v1.0.0

PassportNumberUS

Signature

export declare const PassportNumberUS: t.BrandC<t.StringC, PassportNumberUSBrand>

Added in v1.0.0