use crate::records::type_function_cloner::TypeFunctionCloner;
use crate::records::type_function_runtime::TypeFunctionRuntime;
use crate::type_aliases::type_function_type_id::TypeFunctionTypeId;

pub fn deep_clone(runtime: *mut TypeFunctionRuntime, ty: TypeFunctionTypeId) -> TypeFunctionTypeId {
    let mut cloner = TypeFunctionCloner::new(runtime);
    cloner.clone_type_function_type_id(ty)
}
