---
meta:
 - name: keywords
   description: api typescript node.js documentation ViteModule class
---
# ViteModule - @tsed/vike

## Usage

```typescript
import { ViteModule } from "@tsed/vike";
```

> See [/packages/third-parties/vike/src/ViteModule.ts](https://github.com/tsedio/tsed/blob/v8.28.2/packages/third-parties/vike/src/ViteModule.ts#L0-L0).

## Overview

```ts
class ViteModule {
    protected app: PlatformApplication;
    protected platformView: PlatformViews;
    protected viteService: ViteService;
    protected viteServer: VITE_SERVER;
    $onInit(): void;
    $afterInit(): void;
    $afterRoutesInit(): PlatformApplication<TsED.Application>;
}
```

<!-- Members -->

## protected app

```ts
protected app: PlatformApplication;
```

## protected platformView

```ts
protected platformView: PlatformViews;
```

## protected viteService

```ts
protected viteService: ViteService;
```

## protected viteServer

```ts
protected viteServer: VITE_SERVER;
```

## $onInit

```ts
$onInit(): void;
```

## $afterInit

```ts
$afterInit(): void;
```

## $afterRoutesInit

```ts
$afterRoutesInit(): PlatformApplication<TsED.Application>;
```
