Options
All
  • Public
  • Public/Protected
  • All
Menu

Module TypeGuard

Index

Type aliases

Functions

Type aliases

Constructor

Constructor<T>: object

Type parameters

  • T

Type declaration

Functions

Const typeGuard

  • typeGuard<T>(o: any, className: Constructor<T>): o is T
  • Checks if the given object is an instance of the indicated class.

    Type parameters

    • T

    Parameters

    • o: any

      the object to be checked.

    • className: Constructor<T>

      the name of the class to check for.

    Returns o is T

Generated using TypeDoc