npm.io
0.0.35 • Published 9 months ago

@types/steam

Licence
MIT
Version
0.0.35
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
51.4K

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

/// <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 1930 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Andrey Kurdyumov.