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

# static constructors

"Клас" TypeScript (як і "клас" JavaScript) не може мати статичного конструктора. Однак ви можете отримати той самий ефект досить легко, просто викликавши це самостійно:

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