Function extractNamespaceAndName

  • Extract both the name of a type as well as the namespace if any

    Parameters

    • typeName: string

      Field to separate namespace and type

    Returns {
        name: string;
        namespace?: string;
    }

    • name: string
    • Optional namespace?: string