Options
All
  • Public
  • Public/Protected
  • All
Menu

Type aliases

Type aliases

Equals

Equals<A1, A2>: function extends function ? 1 : 0

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

  • 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.