ts-api-utils - v3.0.0-rc.1
    Preparing search index...

    Function getPropertyOfType

    • Get the property with the given name on the given type (if it exists).

      Parameters

      • type: Type
      • name: __String

      Returns Symbol | undefined

      declare const property: ts.Symbol;
      declare const type: ts.Type;

      getPropertyOfType(type, property.getEscapedName());