@eslinted/core 3.4.2-rc.0 → 3.4.2-rc.1

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 (74) hide show
  1. package/package.json +1 -1
  2. package/types/typioca/safe/numbers/finite/index.d.ts +2 -0
  3. package/types/typioca/safe/numbers/fint.d.ts +1 -1
  4. package/types/typioca/safe/numbers/integer/index.d.ts +2 -0
  5. package/types/typioca/safe/numbers/polarity/Negative.d.ts +2 -2
  6. package/types/typioca/safe/numbers/polarity/Positive.d.ts +2 -2
  7. package/types/typioca/safe/numbers/polarity/pole/{Pole.d.ts → index.d.ts} +4 -4
  8. package/types/typioca/safe/strings/char.d.ts +1 -1
  9. package/types/typioca/safe/strings/{stringful.d.ts → stringful/index.d.ts} +1 -1
  10. package/types/typioca/safe/strings/stringful/length/index.d.ts +3 -0
  11. package/types/typioca/utility/interface/{construct/Property.d.ts → build/properties/property/index.d.ts} +1 -1
  12. package/types/typioca/utility/interface/identity/{Interface.d.ts → interface/index.d.ts} +4 -4
  13. package/types/typioca/utility/iterable/identity/array/{ArrayType.d.ts → index.d.ts} +2 -2
  14. package/types/typioca/utility/iterable/identity/array/length/{ArrayLength.d.ts → index.d.ts} +1 -1
  15. package/types/typioca/utility/iterable/transform/flat/index.d.ts +3 -0
  16. package/types/typioca/utility/iterable/transform/string/stringify/index.d.ts +13 -0
  17. package/types/typioca/utility/object/build/index.d.ts +3 -0
  18. package/types/typioca/utility/{length/Length.d.ts → primitive/number/length/index.d.ts} +10 -10
  19. package/types/typioca/utility/primitive/string/fake/index.d.ts +1 -0
  20. package/types/typioca/safe/numbers/finite/Finite.d.ts +0 -2
  21. package/types/typioca/safe/numbers/finite.d.ts +0 -1
  22. package/types/typioca/safe/numbers/int/Int.d.ts +0 -2
  23. package/types/typioca/safe/numbers/int.d.ts +0 -1
  24. package/types/typioca/safe/strings/length/PropLength.d.ts +0 -3
  25. package/types/typioca/utility/iterable/transform/Join.d.ts +0 -19
  26. package/types/typioca/utility/iterable/transform/stringarray/PathN.d.ts +0 -3
  27. package/types/typioca/utility/iterable/transform/stringarray/stringify/Stringify.d.ts +0 -5
  28. /package/types/typioca/{literal/number → literals/number/bases}/base32.d.ts +0 -0
  29. /package/types/typioca/{literal/number → literals/number/bases}/base64.d.ts +0 -0
  30. /package/types/typioca/{literal/number → literals/number/bases}/binary.d.ts +0 -0
  31. /package/types/typioca/{literal/number → literals/number/bases}/decimal.d.ts +0 -0
  32. /package/types/typioca/{literal/number → literals/number/bases}/hex.d.ts +0 -0
  33. /package/types/typioca/{literal/number → literals/number/bases}/octal.d.ts +0 -0
  34. /package/types/typioca/{literal/number → literals/number/bases}/quatral.d.ts +0 -0
  35. /package/types/typioca/{literal/number → literals/number/bases}/ternary.d.ts +0 -0
  36. /package/types/typioca/{literal/string/base64char.d.ts → literals/string/letter/digit/extended/base64/index.d.ts} +0 -0
  37. /package/types/typioca/{literal/string/hexchar.d.ts → literals/string/letter/digit/extended/hex/index.d.ts} +0 -0
  38. /package/types/typioca/{literal/string/digit.d.ts → literals/string/letter/digit/index.d.ts} +0 -0
  39. /package/types/typioca/{literal/string/letter.d.ts → literals/string/letter/index.d.ts} +0 -0
  40. /package/types/typioca/{safe/primitive.d.ts → primitive/index.d.ts} +0 -0
  41. /package/types/typioca/safe/{Safe.d.ts → index.d.ts} +0 -0
  42. /package/types/typioca/safe/numbers/{numberful.d.ts → integer/numberful/index.d.ts} +0 -0
  43. /package/types/typioca/utility/interface/{construct/Particord.d.ts → build/particord/index.d.ts} +0 -0
  44. /package/types/typioca/utility/interface/{construct → build}/properties/Field.d.ts +0 -0
  45. /package/types/typioca/utility/interface/{construct → build}/properties/Flag.d.ts +0 -0
  46. /package/types/typioca/utility/interface/{construct → build}/properties/Limit.d.ts +0 -0
  47. /package/types/typioca/utility/interface/{construct → build}/properties/List.d.ts +0 -0
  48. /package/types/typioca/utility/interface/{construct → build}/properties/Listish.d.ts +0 -0
  49. /package/types/typioca/utility/interface/{construct → build}/properties/Scalar.d.ts +0 -0
  50. /package/types/typioca/utility/interface/{construct/Recordful.d.ts → build/recordful/index.d.ts} +0 -0
  51. /package/types/typioca/utility/interface/{construct → build}/tables/FieldTable.d.ts +0 -0
  52. /package/types/typioca/utility/interface/{construct → build}/tables/FlagTable.d.ts +0 -0
  53. /package/types/typioca/utility/interface/{construct → build}/tables/ListTable.d.ts +0 -0
  54. /package/types/typioca/utility/interface/{construct → build}/tables/ListishTable.d.ts +0 -0
  55. /package/types/typioca/utility/interface/{construct → build}/tables/ScalarTable.d.ts +0 -0
  56. /package/types/typioca/utility/interface/{construct/Table.d.ts → build/tables/table/index.d.ts} +0 -0
  57. /package/types/typioca/utility/interface/identity/{Keys.d.ts → keys/index.d.ts} +0 -0
  58. /package/types/typioca/utility/interface/transform/{Unrequire.d.ts → partial/unrequire/index.d.ts} +0 -0
  59. /package/types/typioca/utility/iterable/{construct/ArrayN.d.ts → build/arrays/array/index.d.ts} +0 -0
  60. /package/types/typioca/utility/iterable/{construct/arrays/Arrays.d.ts → build/arrays/index.d.ts} +0 -0
  61. /package/types/typioca/utility/iterable/{construct/tuples/Tuples.d.ts → build/tuples/index.d.ts} +0 -0
  62. /package/types/typioca/utility/iterable/{construct/Tuple.d.ts → build/tuples/tuple/index.d.ts} +0 -0
  63. /package/types/typioca/utility/iterable/identity/{DyadType.d.ts → dyad.d.ts} +0 -0
  64. /package/types/typioca/utility/iterable/identity/{MonadType.d.ts → monad.d.ts} +0 -0
  65. /package/types/typioca/utility/iterable/identity/{TriadType.d.ts → triad.d.ts} +0 -0
  66. /package/types/typioca/utility/iterable/transform/{Unflat.d.ts → flat/unflat/index.d.ts} +0 -0
  67. /package/types/typioca/utility/iterable/transform/{stringarray/Chain.d.ts → string/index.d.ts} +0 -0
  68. /package/types/typioca/utility/{null/nullable.d.ts → nullable/index.d.ts} +0 -0
  69. /package/types/typioca/utility/{null/null.d.ts → nullable/null/index.d.ts} +0 -0
  70. /package/types/typioca/utility/primitive/boolean/{True.d.ts → true/index.d.ts} +0 -0
  71. /package/types/typioca/utility/primitive/{Primeval.d.ts → index.d.ts} +0 -0
  72. /package/types/typioca/utility/primitive/number/{Numbered.d.ts → length/numbered/index.d.ts} +0 -0
  73. /package/types/typioca/utility/primitive/string/{literalful.d.ts → literalful/index.d.ts} +0 -0
  74. /package/types/typioca/utility/primitive/string/{literal.d.ts → literalful/literal/index.d.ts} +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "_schemaVersion": "20.17.8",
3
3
  "name": "@eslinted/core",
4
- "version": "3.4.2-rc.0",
4
+ "version": "3.4.2-rc.1",
5
5
  "description": "Core ESLint flat config factory npm package `linted`.",
6
6
  "keywords": [],
7
7
  "license": "MIT",
@@ -0,0 +1,2 @@
1
+ declare const finite: unique symbol;
2
+ declare type finite<N extends number = numberful> = N & { [finite]: true };
@@ -1 +1 @@
1
- declare type fint = Finite<int>;
1
+ declare type fint = finite<int>;
@@ -0,0 +1,2 @@
1
+ declare const int: unique symbol;
2
+ declare type int = numberful & { [int]: true };
@@ -1,4 +1,4 @@
1
1
  declare type Negative<
2
- N extends number,
2
+ N extends number = numberful,
3
3
  Zero = true,
4
- > = Pole<N, "-", Zero>;
4
+ > = pole<"-", N, Zero>;
@@ -1,4 +1,4 @@
1
1
  declare type Positive<
2
- N extends number,
2
+ N extends number = numberful,
3
3
  Zero = true,
4
- > = Pole<N, "+", Zero>;
4
+ > = pole<"+", N, Zero>;
@@ -1,11 +1,11 @@
1
- declare const pole: unique symbol;
2
- declare const min: unique symbol;
3
- declare type Pole<
4
- N extends number,
1
+ declare const pole: unique symbol,
2
+ min: unique symbol;
3
+ declare type pole<
5
4
  P extends
6
5
  | "-"
7
6
  | "+"
8
7
  ,
8
+ N extends number,
9
9
  Zero,
10
10
  > =
11
11
  & N
@@ -1 +1 @@
1
- declare type char = stringful & PropLength<1>;
1
+ declare type char = stringful & StringLength<1>;
@@ -1 +1 @@
1
- declare type stringful = Safe<string, "stringful"> & { 0: stringful & PropLength<1> };
1
+ declare type stringful = Safe<string, "stringful"> & { 0: stringful & StringLength<1> };
@@ -0,0 +1,3 @@
1
+ declare type StringLength<L extends number> = LengthValue<L> extends never
2
+ ? never
3
+ : { length: LengthValue<L> };
@@ -1,7 +1,7 @@
1
1
  declare type Property<K extends string, OK extends string, V> = literalful<K> extends never
2
2
  ? Particord<OK, V>
3
3
  : Recordful<K, V>
4
- & (
4
+ & (
5
5
  literalful<OK> extends never
6
6
  ? object
7
7
  : Particord<OK, V>
@@ -41,10 +41,10 @@ declare namespace NotInterface {
41
41
  export type N1f = Interface<readonly [1]>;
42
42
  export type N1g = Interface<readonly [1, 1]>;
43
43
  export type N1h = Interface<readonly number[]>;
44
- export type N2 = Interface<()=> void>;
45
- export type N2a = Interface<(a: string)=> boolean>;
46
- export type N2b = Interface<(a: string)=> string[]>;
47
- export type N2c = Interface<(a: string)=> object>;
44
+ export type N2 = Interface<() => void>;
45
+ export type N2a = Interface<(a: string) => boolean>;
46
+ export type N2b = Interface<(a: string) => string[]>;
47
+ export type N2c = Interface<(a: string) => object>;
48
48
  export type N5 = Interface<[] | { a: 1 }>;
49
49
  export type N5a = Interface<[30] | { a: 1 }>;
50
50
  export type N5b = Interface<object | []>;
@@ -38,8 +38,8 @@ declare namespace NotArrayType {
38
38
  export type N11 = ArrayType<unknown>;
39
39
  export type N12 = ArrayType<never>;
40
40
  export type N13 = ArrayType<void>;
41
- export type N14 = ArrayType<()=> void>;
42
- export type N15 = ArrayType<(a: string)=> []>;
41
+ export type N14 = ArrayType<() => void>;
42
+ export type N15 = ArrayType<(a: string) => []>;
43
43
  export type N16 = ArrayType<Record<string, unknown>>;
44
44
  export type N17 = ArrayType<Record<number, 5>>;
45
45
  export type N18 = ArrayType<stringful>;
@@ -1,4 +1,4 @@
1
- declare type ArrayLength<A extends readonly unknown[]> = Length<ArrayType<A>["length"]>;
1
+ declare type ArrayLength<A extends readonly unknown[]> = LengthValue<ArrayType<A>["length"]>;
2
2
 
3
3
  declare namespace ArrayLength {
4
4
  export type T0 = ArrayLength<[]>;
@@ -0,0 +1,3 @@
1
+ declare type Flat<A extends readonly unknown[]> = A extends readonly (infer B)[]
2
+ ? B
3
+ : never;
@@ -0,0 +1,13 @@
1
+ declare type Stringify<C> = C extends abstract new (...args: infer A) => infer O
2
+ ? O extends { string: infer S extends string }
3
+ ? S
4
+ : O extends { toString: () => infer S extends string }
5
+ ? S
6
+ : never
7
+ : C extends ((...args: infer A) => infer S extends string)
8
+ ? S
9
+ : C extends { string: infer S extends string }
10
+ ? S
11
+ : C extends { toString: () => infer S extends string }
12
+ ? S
13
+ : never;
@@ -0,0 +1,3 @@
1
+ declare type Constructor<C> = C extends abstract new (...args: infer A) => infer O
2
+ ? new (...args: A) => O
3
+ : never;
@@ -1,22 +1,22 @@
1
- declare type Length<N extends number> = [N] extends [number]
1
+ declare type LengthValue<N extends number> = [N] extends [number]
2
2
  ? [number] extends [N]
3
3
  ? 0
4
4
  : Numbered<N>
5
5
  : never;
6
6
 
7
7
  declare namespace Length {
8
- export type T0 = Length<0>;
9
- export type T0a = Length<0.0>; // 0
10
- export type T0b = Length<number>; // 0
11
- export type T1 = Length<1>;
12
- export type T1a = Length<1.0>; // 1
13
- export type T2 = Length<1.1>; // 1.1
14
- export type T3 = Length<1 | 5>; // 1 | 5
15
- export type T3b = Length<0 | 1 | 5>; // 0 | 1 | 5
8
+ export type T0 = LengthValue<0>;
9
+ export type T0a = LengthValue<0.0>; // 0
10
+ export type T0b = LengthValue<number>; // 0
11
+ export type T1 = LengthValue<1>;
12
+ export type T1a = LengthValue<1.0>; // 1
13
+ export type T2 = LengthValue<1.1>; // 1.1
14
+ export type T3 = LengthValue<1 | 5>; // 1 | 5
15
+ export type T3b = LengthValue<0 | 1 | 5>; // 0 | 1 | 5
16
16
  }
17
17
 
18
18
  declare namespace NotLength {
19
- export type N = Length<never>;
19
+ export type N = LengthValue<never>;
20
20
 
21
21
  // export type N0 = Length<unknown>;
22
22
  // export type N0a = Length<undefined>;
@@ -0,0 +1 @@
1
+ declare type Fake<T> = T extends string ? string : string;
@@ -1,2 +0,0 @@
1
- declare const finite: unique symbol;
2
- declare type Finite<N extends number> = N & { [finite]: 1 };
@@ -1 +0,0 @@
1
- declare type finite = Finite<numberful>;
@@ -1,2 +0,0 @@
1
- declare const int: unique symbol;
2
- declare type Int<N extends number> = N & { [int]: 1 };
@@ -1 +0,0 @@
1
- declare type int = Int<numberful>;
@@ -1,3 +0,0 @@
1
- declare type PropLength<L extends number> = Length<L> extends never
2
- ? never
3
- : { length: Length<L> };
@@ -1,19 +0,0 @@
1
- declare type Join<A extends readonly unknown[], D extends string = string> = ArrayType<A> extends never
2
- ? never
3
- : MonadType<A> extends never
4
- ? string
5
- : MonadType<A> extends readonly (infer I extends string)[]
6
- ? [I] extends [stringful]
7
- ? stringful
8
- : Extract<I, stringful> extends never
9
- ? literalful<I> extends never
10
- ? DyadType<MonadType<A>> extends never
11
- ? string
12
- : literalful<D> extends never
13
- ? [D] extends [stringful]
14
- ? stringful
15
- : string
16
- : stringful
17
- : stringful
18
- : stringful
19
- : never;
@@ -1,3 +0,0 @@
1
- declare type PathN<C, N extends number = 0> = Stringify<C> extends never
2
- ? never
3
- : ArrayN<Stringify<C>, N>;
@@ -1,5 +0,0 @@
1
- declare type Stringify<C> = C extends Record<"string", infer S extends string>
2
- ? S
3
- : C extends Record<"toString", infer Fn extends ()=> string>
4
- ? ReturnType<Fn>
5
- : never;
File without changes