Function getPropertyOfType

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

    Parameters

    • type: Type
    • name: __String

    Returns ts.Symbol | undefined

    Example

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

    getPropertyOfType(type, property.getEscapedName());