Skip to content

Latest commit

 

History

History

IsCompat

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

IsCompat

A helper to check the type compatibility.

Usage

import type {IsCompat} from 'flown'

;(true: IsCompat<2, 2>)
;(false: IsCompat<2, 3>)

;(true: IsCompat<{a: number}, {a: number}>)
;(true: IsCompat<{a: number}, {|a: number|}>)
;(true: IsCompat<{a: number}, {a: number, b?: number}>)