• This function needs to be O(1)! The execution time of this function is vital! We define typeA isSubtypeOf typeA as true. If you find yourself using this function a lot (e.g. in a case) please use getSuperTypeDict instead.

    Parameters

    • baseType: string

      type you want to provide.

    • argumentType: KnownLiteralTypes

      type you want to provide

    • superTypeProvider: ISuperTypeProvider

      the enabler to discover super types of unknown types.

    Returns boolean