Skip to main content

Module: util/typeUtils

Namespaces

Type aliases

ExtractMutable

Ƭ ExtractMutable<T>: { [Prop in keyof T]: IfEquals<Pick<T, Prop>, Record<Prop, T[Prop]>> extends false ? never : Prop }[keyof T]

Type parameters

Name
T

Defined in

util/typeUtils.ts:22

Functions

isSameType

isSameType<T>(a, b): b is T

Determines whether two objects have the same constructor.

Type parameters

Name
T

Parameters

NameTypeDescription
aTThe first object
bunknownThe second object

Returns

b is T

True if a and b have the same constructor

Defined in

util/typeUtils.ts:8