• Synchronously retrieves a KOS data model and its type.

    Type Parameters

    • T extends IKosDataModel = IKosDataModel

    Parameters

    • modelId: string

      The ID of the KOS data model.

    Returns {
        model: T;
        type: undefined | string;
    }

    An object containing the KOS data model and its type.

    • model: T
    • type: undefined | string

    Throws

    An error if the model ID is not provided or the model cannot be found.