Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Type aliases

Return

Return<F>: F extends function ? R : never

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

  • Inherited
  • Protected
  • Private
  • Static
  • Module
  • Object
  • Property
  • Function
  • Variable
  • Index
  • Type
  • Class
  • Interface
  • Enum
  • Constructor
  • Getter/Setter
Made with ❤️ by pirix-gh. Documentation generated by TypeDoc.