Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Any/Equals"

Index

Type aliases

Type aliases

Equals

Equals<A1, A2>: Equals<A1, A2>

Check whether A1 is equal to A2 or not.

Type parameters

  • A1: any
  • A2: any

returns

Boolean

example

import {A} from 'ts-toolbelt'

type test0 = A.Equals<42 | 0, 42 | 0>                    // true
type test1 = A.Equals<{a: string}, {b: string}>          // false
type test3 = A.Equals<{a: string}, {readonly a: string}> // false

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