@eslinted/core 3.4.2-rc.0 → 3.4.2-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/types/typioca/safe/numbers/finite/index.d.ts +2 -0
- package/types/typioca/safe/numbers/fint.d.ts +1 -1
- package/types/typioca/safe/numbers/integer/index.d.ts +2 -0
- package/types/typioca/safe/numbers/polarity/Negative.d.ts +2 -2
- package/types/typioca/safe/numbers/polarity/Positive.d.ts +2 -2
- package/types/typioca/safe/numbers/polarity/pole/{Pole.d.ts → index.d.ts} +4 -4
- package/types/typioca/safe/strings/char.d.ts +1 -1
- package/types/typioca/safe/strings/{stringful.d.ts → stringful/index.d.ts} +1 -1
- package/types/typioca/safe/strings/stringful/length/index.d.ts +3 -0
- package/types/typioca/utility/interface/{construct/Property.d.ts → build/properties/property/index.d.ts} +1 -1
- package/types/typioca/utility/interface/identity/{Interface.d.ts → interface/index.d.ts} +4 -4
- package/types/typioca/utility/iterable/identity/array/{ArrayType.d.ts → index.d.ts} +2 -2
- package/types/typioca/utility/iterable/identity/array/length/{ArrayLength.d.ts → index.d.ts} +1 -1
- package/types/typioca/utility/iterable/transform/flat/index.d.ts +3 -0
- package/types/typioca/utility/iterable/transform/string/stringify/index.d.ts +13 -0
- package/types/typioca/utility/object/build/index.d.ts +3 -0
- package/types/typioca/utility/{length/Length.d.ts → primitive/number/length/index.d.ts} +10 -10
- package/types/typioca/utility/primitive/string/fake/index.d.ts +1 -0
- package/types/typioca/safe/numbers/finite/Finite.d.ts +0 -2
- package/types/typioca/safe/numbers/finite.d.ts +0 -1
- package/types/typioca/safe/numbers/int/Int.d.ts +0 -2
- package/types/typioca/safe/numbers/int.d.ts +0 -1
- package/types/typioca/safe/strings/length/PropLength.d.ts +0 -3
- package/types/typioca/utility/iterable/transform/Join.d.ts +0 -19
- package/types/typioca/utility/iterable/transform/stringarray/PathN.d.ts +0 -3
- package/types/typioca/utility/iterable/transform/stringarray/stringify/Stringify.d.ts +0 -5
- /package/types/typioca/{literal/number → literals/number/bases}/base32.d.ts +0 -0
- /package/types/typioca/{literal/number → literals/number/bases}/base64.d.ts +0 -0
- /package/types/typioca/{literal/number → literals/number/bases}/binary.d.ts +0 -0
- /package/types/typioca/{literal/number → literals/number/bases}/decimal.d.ts +0 -0
- /package/types/typioca/{literal/number → literals/number/bases}/hex.d.ts +0 -0
- /package/types/typioca/{literal/number → literals/number/bases}/octal.d.ts +0 -0
- /package/types/typioca/{literal/number → literals/number/bases}/quatral.d.ts +0 -0
- /package/types/typioca/{literal/number → literals/number/bases}/ternary.d.ts +0 -0
- /package/types/typioca/{literal/string/base64char.d.ts → literals/string/letter/digit/extended/base64/index.d.ts} +0 -0
- /package/types/typioca/{literal/string/hexchar.d.ts → literals/string/letter/digit/extended/hex/index.d.ts} +0 -0
- /package/types/typioca/{literal/string/digit.d.ts → literals/string/letter/digit/index.d.ts} +0 -0
- /package/types/typioca/{literal/string/letter.d.ts → literals/string/letter/index.d.ts} +0 -0
- /package/types/typioca/{safe/primitive.d.ts → primitive/index.d.ts} +0 -0
- /package/types/typioca/safe/{Safe.d.ts → index.d.ts} +0 -0
- /package/types/typioca/safe/numbers/{numberful.d.ts → integer/numberful/index.d.ts} +0 -0
- /package/types/typioca/utility/interface/{construct/Particord.d.ts → build/particord/index.d.ts} +0 -0
- /package/types/typioca/utility/interface/{construct → build}/properties/Field.d.ts +0 -0
- /package/types/typioca/utility/interface/{construct → build}/properties/Flag.d.ts +0 -0
- /package/types/typioca/utility/interface/{construct → build}/properties/Limit.d.ts +0 -0
- /package/types/typioca/utility/interface/{construct → build}/properties/List.d.ts +0 -0
- /package/types/typioca/utility/interface/{construct → build}/properties/Listish.d.ts +0 -0
- /package/types/typioca/utility/interface/{construct → build}/properties/Scalar.d.ts +0 -0
- /package/types/typioca/utility/interface/{construct/Recordful.d.ts → build/recordful/index.d.ts} +0 -0
- /package/types/typioca/utility/interface/{construct → build}/tables/FieldTable.d.ts +0 -0
- /package/types/typioca/utility/interface/{construct → build}/tables/FlagTable.d.ts +0 -0
- /package/types/typioca/utility/interface/{construct → build}/tables/ListTable.d.ts +0 -0
- /package/types/typioca/utility/interface/{construct → build}/tables/ListishTable.d.ts +0 -0
- /package/types/typioca/utility/interface/{construct → build}/tables/ScalarTable.d.ts +0 -0
- /package/types/typioca/utility/interface/{construct/Table.d.ts → build/tables/table/index.d.ts} +0 -0
- /package/types/typioca/utility/interface/identity/{Keys.d.ts → keys/index.d.ts} +0 -0
- /package/types/typioca/utility/interface/transform/{Unrequire.d.ts → partial/unrequire/index.d.ts} +0 -0
- /package/types/typioca/utility/iterable/{construct/ArrayN.d.ts → build/arrays/array/index.d.ts} +0 -0
- /package/types/typioca/utility/iterable/{construct/arrays/Arrays.d.ts → build/arrays/index.d.ts} +0 -0
- /package/types/typioca/utility/iterable/{construct/tuples/Tuples.d.ts → build/tuples/index.d.ts} +0 -0
- /package/types/typioca/utility/iterable/{construct/Tuple.d.ts → build/tuples/tuple/index.d.ts} +0 -0
- /package/types/typioca/utility/iterable/identity/{DyadType.d.ts → dyad.d.ts} +0 -0
- /package/types/typioca/utility/iterable/identity/{MonadType.d.ts → monad.d.ts} +0 -0
- /package/types/typioca/utility/iterable/identity/{TriadType.d.ts → triad.d.ts} +0 -0
- /package/types/typioca/utility/iterable/transform/{Unflat.d.ts → flat/unflat/index.d.ts} +0 -0
- /package/types/typioca/utility/iterable/transform/{stringarray/Chain.d.ts → string/index.d.ts} +0 -0
- /package/types/typioca/utility/{null/nullable.d.ts → nullable/index.d.ts} +0 -0
- /package/types/typioca/utility/{null/null.d.ts → nullable/null/index.d.ts} +0 -0
- /package/types/typioca/utility/primitive/boolean/{True.d.ts → true/index.d.ts} +0 -0
- /package/types/typioca/utility/primitive/{Primeval.d.ts → index.d.ts} +0 -0
- /package/types/typioca/utility/primitive/number/{Numbered.d.ts → length/numbered/index.d.ts} +0 -0
- /package/types/typioca/utility/primitive/string/{literalful.d.ts → literalful/index.d.ts} +0 -0
- /package/types/typioca/utility/primitive/string/{literal.d.ts → literalful/literal/index.d.ts} +0 -0
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
declare type fint =
|
1
|
+
declare type fint = finite<int>;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
declare const pole: unique symbol
|
2
|
-
|
3
|
-
declare type
|
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 &
|
1
|
+
declare type char = stringful & StringLength<1>;
|
@@ -1 +1 @@
|
|
1
|
-
declare type stringful = Safe<string, "stringful"> & { 0: stringful &
|
1
|
+
declare type stringful = Safe<string, "stringful"> & { 0: stringful & StringLength<1> };
|
@@ -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>;
|
@@ -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;
|
@@ -1,22 +1,22 @@
|
|
1
|
-
declare type
|
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 =
|
9
|
-
export type T0a =
|
10
|
-
export type T0b =
|
11
|
-
export type T1 =
|
12
|
-
export type T1a =
|
13
|
-
export type T2 =
|
14
|
-
export type T3 =
|
15
|
-
export type T3b =
|
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 =
|
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 +0,0 @@
|
|
1
|
-
declare type finite = Finite<numberful>;
|
@@ -1 +0,0 @@
|
|
1
|
-
declare type int = Int<numberful>;
|
@@ -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;
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/types/typioca/{literal/string/digit.d.ts → literals/string/letter/digit/index.d.ts}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/types/typioca/utility/interface/{construct/Particord.d.ts → build/particord/index.d.ts}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/types/typioca/utility/interface/{construct/Recordful.d.ts → build/recordful/index.d.ts}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/types/typioca/utility/interface/{construct/Table.d.ts → build/tables/table/index.d.ts}
RENAMED
File without changes
|
File without changes
|
/package/types/typioca/utility/interface/transform/{Unrequire.d.ts → partial/unrequire/index.d.ts}
RENAMED
File without changes
|
/package/types/typioca/utility/iterable/{construct/ArrayN.d.ts → build/arrays/array/index.d.ts}
RENAMED
File without changes
|
/package/types/typioca/utility/iterable/{construct/arrays/Arrays.d.ts → build/arrays/index.d.ts}
RENAMED
File without changes
|
/package/types/typioca/utility/iterable/{construct/tuples/Tuples.d.ts → build/tuples/index.d.ts}
RENAMED
File without changes
|
/package/types/typioca/utility/iterable/{construct/Tuple.d.ts → build/tuples/tuple/index.d.ts}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/types/typioca/utility/iterable/transform/{stringarray/Chain.d.ts → string/index.d.ts}
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/types/typioca/utility/primitive/number/{Numbered.d.ts → length/numbered/index.d.ts}
RENAMED
File without changes
|
File without changes
|
/package/types/typioca/utility/primitive/string/{literal.d.ts → literalful/literal/index.d.ts}
RENAMED
File without changes
|