UNPKG

angelia.io

Version:

WebSockets Server and Client API for node.js and the browser, with rooms support.

39 lines (38 loc) 1.59 kB
export function ListenerTemplate(): { (...args: any[]): void; fns: any[]; }; export function empty(): any; export const now: () => number; export const inspect: unique symbol; export const stringify: { (value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string; (value: any, replacer?: (number | string)[] | null, space?: string | number): string; }; export const parse: (text: string, reviver?: (this: any, key: string, value: any) => any) => any; export const assign: { <T extends {}, U>(target: T, source: U): T & U; <T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V; <T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W; (target: object, ...sources: any[]): any; }; export const isArray: (arg: any) => arg is any[]; export const fromEntries: { <T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T; }; (entries: Iterable<readonly any[]>): any; }; export const arrayFrom: { <T>(arrayLike: ArrayLike<T>): T[]; <T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; <T>(iterable: Iterable<T> | ArrayLike<T>): T[]; <T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]; }; export const frame: (data?: any) => any; export class MapeableSet extends Set<any> { constructor(values?: readonly any[] | null | undefined); constructor(iterable?: Iterable<any> | null | undefined); map(fn: any): any[]; filter(fn: any): any[]; }