eslint-plugin-mgw-eslint-rules 2.3.40 → 2.3.41

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/index.js CHANGED
@@ -44391,7 +44391,11 @@ var rule8 = createRule8({
44391
44391
  const listeReactiveWritableTypes = ["Subject", "BehaviorSubject", "ReplaySubject", "AsyncSubject", "WritableSignal", "InputSignal"];
44392
44392
  const listeReactiveReadonlyTypes = ["Signal", "Observable", "Promise"];
44393
44393
  function getTypeWithoutGeneric(type) {
44394
- return type.split("<")[0];
44394
+ const indexGeneric = type.indexOf("<");
44395
+ if (indexGeneric > -1) {
44396
+ return type.slice(0, indexGeneric);
44397
+ }
44398
+ return type;
44395
44399
  }
44396
44400
  function checkNode(node, messageId) {
44397
44401
  const name = node.name;