Options
All
  • Public
  • Public/Protected
  • All
Menu

@iov/encoding Documentation

Index

Type aliases

JsonCompatibleValue

JsonCompatibleValue: JsonCompatibleDictionary | JsonCompatibleArray | string | number | boolean | null

A single JSON value. This is the missing return type of JSON.parse().

Functions

isJsonCompatibleArray

  • isJsonCompatibleArray(value: unknown): boolean
  • Parameters

    • value: unknown

    Returns boolean

isJsonCompatibleDictionary

  • isJsonCompatibleDictionary(data: unknown): boolean
  • Parameters

    • data: unknown

    Returns boolean

isJsonCompatibleValue

  • isJsonCompatibleValue(value: unknown): boolean
  • Parameters

    • value: unknown

    Returns boolean

isNonNullObject

  • isNonNullObject(data: unknown): boolean
  • Checks if data is a non-null object (i.e. matches the TypeScript object type)

    Parameters

    • data: unknown

    Returns boolean

isUint8Array

  • isUint8Array(data: unknown): boolean
  • Checks if data is an Uint8Array. Note: Buffer is treated as not a Uint8Array

    Parameters

    • data: unknown

    Returns boolean

Generated using TypeDoc