# @types/steam

> TypeScript definitions for steam

Latest version **0.0.35** (published 2025-12-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/steam
pnpm add @types/steam
yarn add @types/steam
bun add @types/steam
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.0.35 |
| Published | 2025-12-10 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/steam
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/steam
- npm.io page: https://npm.io/package/@types/steam

## Dependencies (1)

- [@types/node](https://npm.io/package/@types/node.md) *

## Recent versions

- 0.0.35 (latest) — 2025-12-10
- 0.0.34 (ts5.1) — 2024-10-31
- 0.0.32 (ts4.5) — 2023-11-07
- 0.0.29 (ts4.3) — 2021-07-02
- 0.0.28 (ts3.5) — 2019-12-23
- 0.0.27 (ts2.0) — 2016-09-19
- 0.0.33 — 2024-10-31
- 0.0.31 — 2023-10-18
- 0.0.30 — 2023-09-25
- 0.0.26 — 2016-07-14
- 0.0.25-alpha — 2016-07-08
- 0.0.24-alpha — 2016-07-04
- 0.0.23-alpha — 2016-07-02
- 0.0.22-alpha — 2016-07-02
- 0.0.21-alpha — 2016-07-01
- … 4 more at https://npm.io/package/@types/steam/versions

## README

# Installation
> `npm install --save @types/steam`

# Summary
This package contains type definitions for steam (https://github.com/seishun/node-steam).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/steam.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/steam/index.d.ts)
````ts
/// <reference types="node" />

import { EventEmitter } from "events";

export = Steam;

declare namespace Steam {
    export var servers: any;

    export interface LogonOptions {
        accountName: string;
        password: string;
        shaSentryfile?: string | undefined;
        authCode?: string | undefined;
    }

    export enum EResult {
        AccountLogonDenied,
    }

    export enum EPersonaState {
        Online,
    }

    export enum EChatEntryType {
        ChatMsg,
    }

    export enum EChatMemberStateChange {
        Kicked,
    }

    export class SteamClient extends EventEmitter {
        sessionId: string;
        cookie: string[];
        steamID: string;
        users: {};

        logOn(options: LogonOptions): void;
        webLogOn(callback: (cookie: any[]) => void): void;

        joinChat(chatId: string): void;
        sendMessage(source: any, message: string, entryType: EChatEntryType): void;

        setPersonaState(state: EPersonaState): void;
        setPersonaName(name: string): void;
    }
}

````

### Additional Details
 * Last updated: Wed, 10 Dec 2025 19:02:30 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Andrey Kurdyumov](https://github.com/kant2002).

---
_Source: https://npm.io/package/@types/steam · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
