Skip to content

Latest commit

 

History

History

Return

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Return

A helper to get the Return Type of the function.

Usage

Generic

import type {Return} from 'flown'

declare function someFunction(string): string

/**
 * string
 */
type ReturnType = Return<typeof someFunction>

Function

import type {_Return} from 'flown'

declare function someFunction(string): string

/**
 * string
 */
type ReturnType = $Call<_Return, typeof someFunction>