@e-mc/types 0.6.12 → 0.6.13

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/constant.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export const enum INTERNAL {
2
- VERSION = '0.6.12',
2
+ VERSION = '0.6.13',
3
3
  TEMP_DIR = 'tmp',
4
4
  CJS = '__cjs__'
5
5
  }
package/index.d.ts CHANGED
@@ -251,7 +251,7 @@ declare namespace types {
251
251
  function isPlainObject<T = PlainObject>(value: unknown): value is T;
252
252
  function isString(value: unknown): value is string;
253
253
  function isEmpty(value: unknown): boolean;
254
- function asFunction<U = unknown, V = unknown>(value: unknown, sync?: boolean): Null<FunctionType<Promise<U> | U, V>>;
254
+ function asFunction<U = unknown, V = unknown>(value: unknown, sync?: boolean): Null<FunctionType<U, V>>;
255
255
  function parseTime(value: NumString, start?: number): number;
256
256
  function parseExpires(value: NumString, start?: number): number;
257
257
  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.6.12",
3
+ "version": "0.6.13",
4
4
  "description": "Type definitions for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",