@plugjs/expect5 0.6.78 → 0.6.79

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/cli.mjs CHANGED
@@ -8,7 +8,7 @@ var { $blu, $und, $gry, $wht } = logging;
8
8
  var $gnd = (s) => $gry($und(s));
9
9
  var $bnd = (s) => $blu($und(s));
10
10
  var $wnd = (s) => $wht($und(s));
11
- var version = true ? "0.6.78" : "0.0.0-dev";
11
+ var version = true ? "0.6.79" : "0.0.0-dev";
12
12
  function help() {
13
13
  console.log(`${$blu($und("Usage:"))}
14
14
 
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * When the timeout configured is reached, the passed `signal` will be aborted.
5
5
  */
6
- export type Call = (this: undefined, signal: AbortSignal) => void | Promise<void>;
6
+ export type Call = (this: undefined, signal: AbortSignal) => any | Promise<any>;
7
7
  /** Flag types for an {@link Executable} */
8
8
  export type Flag = 'skip' | 'only' | undefined;
9
9
  /** An {@link Executor} notifying lifecycle events for {@link Executable}s */
@@ -2,7 +2,7 @@ import type { Diff } from './diff';
2
2
  import type { Matcher } from './matchers';
3
3
  import type { Constructor, TypeMappings, TypeName } from './types';
4
4
  /** An assertion function, for sub-expectations and value introspection */
5
- export type AssertionFunction<T = unknown> = (assert: Expectations<T>) => void | Expectations;
5
+ export type AssertionFunction<T = unknown> = (assert: Expectations<T>) => any;
6
6
  /** Return the type asserted by an {@link AssertionFunction} or `T` */
7
7
  export type AssertedType<T, F extends AssertionFunction<any>, R = ReturnType<F>> = R extends Expectations<infer I> ? unknown extends I ? T : I : T;
8
8
  /** Infer the type of a {@link Matcher} */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plugjs/expect5",
3
- "version": "0.6.78",
3
+ "version": "0.6.79",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -43,14 +43,14 @@
43
43
  "author": "Juit Developers <developers@juit.com>",
44
44
  "license": "Apache-2.0",
45
45
  "dependencies": {
46
- "@plugjs/tsrun": "^0.6.24"
46
+ "@plugjs/tsrun": "^0.6.25"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/chai": "<5",
50
50
  "chai": "<5"
51
51
  },
52
52
  "peerDependencies": {
53
- "@plugjs/plug": "0.6.78"
53
+ "@plugjs/plug": "0.6.79"
54
54
  },
55
55
  "files": [
56
56
  "*.md",
@@ -8,7 +8,7 @@ import { getSingleton } from '@plugjs/plug/utils'
8
8
  *
9
9
  * When the timeout configured is reached, the passed `signal` will be aborted.
10
10
  */
11
- export type Call = (this: undefined, signal: AbortSignal) => void | Promise<void>
11
+ export type Call = (this: undefined, signal: AbortSignal) => any | Promise<any>
12
12
 
13
13
  /** Flag types for an {@link Executable} */
14
14
  export type Flag = 'skip' | 'only' | undefined
@@ -22,7 +22,7 @@ import type {
22
22
  * ========================================================================== */
23
23
 
24
24
  /** An assertion function, for sub-expectations and value introspection */
25
- export type AssertionFunction<T = unknown> = (assert: Expectations<T>) => void | Expectations
25
+ export type AssertionFunction<T = unknown> = (assert: Expectations<T>) => any
26
26
 
27
27
  /** Return the type asserted by an {@link AssertionFunction} or `T` */
28
28
  export type AssertedType<T, F extends AssertionFunction<any>, R = ReturnType<F>> =