Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Function/Return"

Index

Type aliases

Type aliases

Return

Return<F>: Return<F>

Extract the return type of a Function

Type parameters

returns

any

example

import {F} from 'ts-toolbelt'

const fn = () => true

type test0 = F.ReturnOf<typeof fn>  // boolean

type test1 = F.ReturnOf<() => true> // true

Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.