Skip to main content

@zero-dependency/cookie

Index

Type Aliases

Decode

Decode<T>: (value: string, name: KeyOf<T>) => any

Type parameters

  • T

Type declaration

    • (value: string, name: KeyOf<T>): any
    • Parameters

      • value: string
      • name: KeyOf<T>

      Returns any

Encode

Encode<T>: (value: any, name: KeyOf<T>) => any

Type parameters

  • T

Type declaration

    • (value: any, name: KeyOf<T>): any
    • Parameters

      Returns any

KeyOf

KeyOf<T>: Extract<keyof T, string>

Type parameters

  • T