# TypeORMModule Class

Module
import { TypeORMModule } from "@tsed/typeorm"
Source/packages/typeorm/src/TypeORMModule.ts

# Overview

class TypeORMModule implements OnDestroy {
<span class="token keyword">constructor</span><span class="token punctuation">(</span>configuration<span class="token punctuation">:</span> <a href="/api/di/decorators/Configuration.html"><span class="token">Configuration</span></a><span class="token punctuation">,</span> typeORMService<span class="token punctuation">:</span> <a href="/api/typeorm/services/TypeORMService.html"><span class="token">TypeORMService</span></a><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token function">init</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> Promise&lt;<span class="token keyword">any</span>&gt;<span class="token punctuation">;</span>
$<span class="token function">onDestroy</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">:</span> Promise&lt;<span class="token keyword">any</span>&gt; | <span class="token keyword">void</span><span class="token punctuation">;</span>

}