wspromisify 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.d.ts CHANGED
@@ -19,14 +19,12 @@ declare namespace wsc {
19
19
  type EventHandler = (e: any) => void;
20
20
  type Predicate = (data: any) => boolean;
21
21
  type DataPipe = (message: any) => any;
22
- type DataType = "json" | "string";
23
22
  interface TimeFnParams {
24
23
  base: number;
25
24
  max: number;
26
25
  jitter: number;
27
26
  }
28
27
  interface Config {
29
- data_type: DataType;
30
28
  log(event: string, time?: number | null, message?: any): void;
31
29
  log(event: string, message?: any): void;
32
30
  timer: boolean;
@@ -70,12 +68,10 @@ declare namespace wsc {
70
68
  type UserConfig = import("type-fest").PartialDeep<Config> & Pick<Config, "url">;
71
69
  type SendOptions = Partial<{
72
70
  top: any;
73
- data_type: DataType;
74
71
  }>;
75
72
  interface Message {
76
73
  msg: any;
77
74
  ff(x: any): any;
78
- data_type: DataType;
79
75
  sent_time: number | null;
80
76
  }
81
77
  }