0.0.34 • Published 2 months ago
@types/steam v0.0.34
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
// Type definitions for steam
// Project: https://github.com/seishun/node-steam
// Definitions by: Andrey Kurdyumov <https://github.com/kant2002>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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;
// Event emitter
addListener(event: string, listener: Function): this;
on(event: string, listener: Function): this;
once(event: string, listener: Function): this;
removeListener(event: string, listener: Function): this;
removeAllListeners(event?: string): this;
setMaxListeners(n: number): this;
getMaxListeners(): number;
listeners(event: string): Function[];
emit(event: string, ...args: any[]): boolean;
listenerCount(type: string): number;
}
}
Additional Details
- Last updated: Fri, 02 Jul 2021 22:32:55 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Andrey Kurdyumov.
0.0.33
2 months ago
0.0.34
2 months ago
0.0.30
1 year ago
0.0.31
1 year ago
0.0.32
1 year ago
0.0.29
3 years ago
0.0.28
5 years ago
0.0.27
8 years ago
0.0.26
8 years ago
0.0.25-alpha
8 years ago
0.0.24-alpha
8 years ago
0.0.23-alpha
8 years ago
0.0.22-alpha
8 years ago
0.0.21-alpha
8 years ago
0.0.20-alpha
9 years ago
0.0.19-alpha
9 years ago
0.0.14-alpha
9 years ago
0.0.13-alpha
9 years ago