Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Network/NetParse

Index

Functions

Functions

parse

  • parse<A>(type: t.Type<A, unknown, unknown>, input: string): A | undefined
  • Parse a strongly typed object from its JSON serialization.

    Type parameters

    • A

    Parameters

    • type: t.Type<A, unknown, unknown>

      An io-ts codec that accepts JSON-compatible objects as input.

    • input: string

      The JSON source to parse.

    Returns A | undefined

    The parsed type instance, or undefined if the input is invalid.

unexpected

  • unexpected(x: never): never

Generated using TypeDoc