tstyche 4.0.0-beta.2 → 4.0.0-beta.3

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.
Files changed (2) hide show
  1. package/build/tstyche.js +2 -18
  2. package/package.json +1 -1
package/build/tstyche.js CHANGED
@@ -4000,23 +4000,7 @@ class ToBeCallableWith {
4000
4000
  }
4001
4001
  return diagnostics;
4002
4002
  }
4003
- match(matchWorker, sourceNode, targetNodes, onDiagnostics) {
4004
- let mustBeText;
4005
- if (!(sourceNode.kind === this.#compiler.SyntaxKind.Identifier ||
4006
- sourceNode.kind === this.#compiler.SyntaxKind.ExpressionWithTypeArguments)) {
4007
- mustBeText = "an identifier or instantiation expression";
4008
- }
4009
- if (matchWorker.getType(sourceNode).getCallSignatures().length === 0) {
4010
- mustBeText = "of a function type";
4011
- }
4012
- if (mustBeText != null) {
4013
- const text = this.#compiler.isTypeNode(sourceNode)
4014
- ? ExpectDiagnosticText.typeArgumentMustBe("Source", mustBeText)
4015
- : ExpectDiagnosticText.argumentMustBe("source", mustBeText);
4016
- const origin = DiagnosticOrigin.fromNode(sourceNode);
4017
- onDiagnostics([Diagnostic.error(text, origin)]);
4018
- return;
4019
- }
4003
+ match(matchWorker, sourceNode, targetNodes, _onDiagnostics) {
4020
4004
  return {
4021
4005
  explain: () => this.#explain(matchWorker, sourceNode, targetNodes),
4022
4006
  isMatch: !matchWorker.assertion.abilityDiagnostics,
@@ -4507,7 +4491,7 @@ class TaskRunner {
4507
4491
  class Runner {
4508
4492
  #eventEmitter = new EventEmitter();
4509
4493
  #resolvedConfig;
4510
- static version = "4.0.0-beta.2";
4494
+ static version = "4.0.0-beta.3";
4511
4495
  constructor(resolvedConfig) {
4512
4496
  this.#resolvedConfig = resolvedConfig;
4513
4497
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tstyche",
3
- "version": "4.0.0-beta.2",
3
+ "version": "4.0.0-beta.3",
4
4
  "description": "The Essential Type Testing Tool.",
5
5
  "keywords": [
6
6
  "typescript",