@eslinted/core 0.7.0-rc.4 → 0.7.0-rc.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  import type { Scope } from "../input.js";
2
2
  import type { Options } from "../../../factory/Factory.js";
3
3
  type Parsers = {
4
- [S in Scope]: ConstructorParameters<typeof Options[S]>[2];
4
+ readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]] ? unknown : null;
5
5
  };
6
6
  export type { Parsers as default };
7
7
  //# sourceMappingURL=parsers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,KAAK,OAAO,GAAG;KAAG,CAAC,IAAI,KAAK,GAAG,qBAAqB,CAAG,OAAO,OAAO,CAAC,CAAC,CAAC,CAAE,CAAE,CAAC,CAAC;CAAE,CAAC;AAEjF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,KAAK,OAAO,GAAG;IACb,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,qBAAqB,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,GACvG,OAAO,GACP,IAAI;CACT,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslinted/core",
3
- "version": "0.7.0-rc.4",
3
+ "version": "0.7.0-rc.6",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -1,6 +1,10 @@
1
1
  import type { Scope } from "../input.js";
2
2
  import type { Options } from "../../../factory/Factory.js";
3
3
 
4
- type Parsers = { [S in Scope]: ConstructorParameters < typeof Options[S] > [2] };
4
+ type Parsers = {
5
+ readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]]
6
+ ? unknown
7
+ : null
8
+ };
5
9
 
6
10
  export type { Parsers as default };