Options
All
  • Public
  • Public/Protected
  • All
Menu

PRISM

A library for safely parsing 3rd party API data

API Documentation

You can find the generated docs at https://stayradiated.github.io/prism

Why would I use this?

-

Why would I not use this?

Examples

License

Prism is licensed under the MIT License.

Index

References

Classes

Interfaces

Type aliases

Functions

References

default

Renames and exports Prism

Type aliases

Path

Path: PathKey[]

PathKey

PathKey: string | number

Transformer

Transformer<C, T>: (prism: Prism<T>) => C

Type parameters

  • C

  • T

Type declaration

    • Parameters

      Returns C

Functions

Const asValue

  • asValue<C, T>(fn: (value: undefined | T) => C): Transformer<C, T>
  • Type parameters

    • C

    • T

    Parameters

    • fn: (value: undefined | T) => C
        • (value: undefined | T): C
        • Parameters

          • value: undefined | T

          Returns C

    Returns Transformer<C, T>

Const defaultTo

Const printWarnings

  • printWarnings(warnings: Warning[], root?: string): void

Legend

  • Property
  • Method
  • Property

Generated using TypeDoc