Type alias ScalarResolver

ScalarResolver: {
    decode?: ((s) => unknown);
    encode?: ((s) => string);
}

Type declaration

  • Optional decode?: ((s) => unknown)
      • (s): unknown
      • Parameters

        • s: unknown

        Returns unknown

  • Optional encode?: ((s) => string)
      • (s): string
      • Parameters

        • s: unknown

        Returns string