Interface TypeResolvingService<Specifics>

interface TypeResolvingService<Specifics extends TypirSpecifics> {
    resolve<T extends Type>(descriptor: TypeDescriptor<T, Specifics>): T;
    tryToResolve<T extends Type>(
        descriptor: TypeDescriptor<T, Specifics>,
    ): undefined | T;
}

Type Parameters

Implemented by

Methods

  • Finds the specified type in the type system. This method does not care about the initialization state of the found type, this method is restricted to just search and find any type according to the given TypeDescriptor.

    Type Parameters

    Parameters

    Returns T

    the found type; or an exception, if the type cannot be resolved

  • Tries to find the specified type in the type system. This method does not care about the initialization state of the found type, this method is restricted to just search and find any type according to the given TypeDescriptor.

    Type Parameters

    Parameters

    Returns undefined | T

    the found type; or undefined, if there is no such type in the type system