Skip to main content

exposeAPI

Callable

  • exposeAPI<Methods, PipedAPI>(apiMethods?: Methods, pipedApi?: PipedAPI): [() => void, (e: Error) => void, PublicAPI<Methods, PipedAPI>]

  • Type parameters

    • Methods
    • PipedAPI

    Parameters

    • optionalapiMethods: Methods
    • optionalpipedApi: PipedAPI

    Returns [() => void, (e: Error) => void, PublicAPI<Methods, PipedAPI>]