> For the complete documentation index, see [llms.txt](https://typescript-jp.gitbook.io/deep-dive/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://typescript-jp.gitbook.io/deep-dive/main-1/staticconstructor.md).

# static constructors

TypeScriptの`class`は(JavaScriptの`class`のような)静的なコンストラクタを持つことはできません。しかし、自分で呼び出すだけで、同じ効果を得ることができます。

```typescript
class MyClass {
    static initialize() {
        // Initialization
    }
}
MyClass.initialize();
```
