@e-mc/types 0.7.15 → 0.7.16

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/index.d.ts CHANGED
@@ -263,7 +263,7 @@ declare namespace types {
263
263
  function isPlainObject<T = PlainObject>(value: unknown): value is T;
264
264
  function isString(value: unknown): value is string;
265
265
  function isEmpty(value: unknown): boolean;
266
- function asFunction<U = unknown, V = unknown>(value: unknown, sync?: boolean): Null<FunctionType<Promise<U> | U, V>>;
266
+ function asFunction<U = unknown, V = unknown>(value: unknown, sync?: boolean): Null<FunctionType<U, V>>;
267
267
  function parseTime(value: NumString, start?: number): number;
268
268
  function parseExpires(value: NumString, start?: number): number;
269
269
  function formatTime(value: number, char: string): string;
package/lib/http.d.ts CHANGED
@@ -78,6 +78,11 @@ export const enum QUERY_RESULT {
78
78
  TIMEOUT
79
79
  }
80
80
 
81
+ export interface AuthValue {
82
+ username?: string;
83
+ password?: string;
84
+ }
85
+
81
86
  export interface HttpAgentSettings {
82
87
  http?: HttpAgent;
83
88
  https?: HttpsAgent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/types",
3
- "version": "0.7.15",
3
+ "version": "0.7.16",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",