faast.js

faast.js

  • Docs
  • API
  • Community
  • GitHub
  • Blog

faastjs > PromisifiedFunction

PromisifiedFunction type

The type of functions on FaastModule.functions. Used by Promisified.

Signature:

export declare type PromisifiedFunction<A extends any[], R> = (...args: A) => Promise<Unpacked<R>>;

Remarks

Given argument types A and return type R of a function, PromisifiedFunction<A,R> is a type with the same signature except the return value is replaced with a Promise. If the original function already returned a promise, the signature is unchanged.

  • PromisifiedFunction type
  • Remarks
faast.js
Docs
IntroductionAPI ReferenceContributingExamples
Community
SlackTwitterStack Overflowfaast.js
More
BlogUser Showcase
Copyright © 2019 Andy Chou