Function generalizeType

  • Given a TypeNode type that is specialized to some storage location, compute the original 'general' type that is independent of location. This is the inverse of specializeType()

    Note that this doesn't handle all possible expression types - just the ones that that may appear in a variable declaration.

    Parameters

    Returns [TypeNode, DataLocation | undefined]

    computed generalized type.

Generated using TypeDoc