tstyche 2.1.0 → 3.0.0-beta.0
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/README.md +1 -7
- package/build/tstyche.d.ts +27 -28
- package/build/tstyche.js +443 -429
- package/package.json +14 -16
package/README.md
CHANGED
|
@@ -2,10 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[![version][version-badge]][version-url]
|
|
4
4
|
[![license][license-badge]][license-url]
|
|
5
|
-
[![requirements][requirements-badge]][requirements-url]
|
|
6
5
|
[![install-size][install-size-badge]][install-size-url]
|
|
7
6
|
[![coverage][coverage-badge]][coverage-url]
|
|
8
|
-
[![discord][discord-badge]][discord-url]
|
|
9
7
|
|
|
10
8
|
The Essential Type Testing Tool.
|
|
11
9
|
|
|
@@ -80,7 +78,7 @@ Visit [https://tstyche.org](https://tstyche.org) to view the full documentation.
|
|
|
80
78
|
|
|
81
79
|
## Feedback
|
|
82
80
|
|
|
83
|
-
If you have any questions or suggestions, [start a discussion](https://github.com/tstyche/tstyche/discussions/new/choose) or [open an issue](https://github.com/tstyche/tstyche/issues/new/choose) on GitHub. Preferring a chat? Join our [Discord server]
|
|
81
|
+
If you have any questions or suggestions, [start a discussion](https://github.com/tstyche/tstyche/discussions/new/choose) or [open an issue](https://github.com/tstyche/tstyche/issues/new/choose) on GitHub. Preferring a chat? Join our [Discord server](https://discord.gg/gCSasd3QJq).
|
|
84
82
|
|
|
85
83
|
## License
|
|
86
84
|
|
|
@@ -90,11 +88,7 @@ If you have any questions or suggestions, [start a discussion](https://github.co
|
|
|
90
88
|
[version-url]: https://npmjs.com/package/tstyche
|
|
91
89
|
[license-badge]: https://badgen.net/github/license/tstyche/tstyche
|
|
92
90
|
[license-url]: https://github.com/tstyche/tstyche/blob/main/LICENSE.md
|
|
93
|
-
[requirements-badge]: https://badgen.net/npm/node/tstyche
|
|
94
|
-
[requirements-url]: https://tstyche.org/reference/requirements
|
|
95
91
|
[install-size-badge]: https://badgen.net/packagephobia/install/tstyche
|
|
96
92
|
[install-size-url]: https://packagephobia.com/result?p=tstyche
|
|
97
93
|
[coverage-badge]: https://badgen.net/codacy/coverage/a581ca5c323a455886b7bdd9623c4ec8
|
|
98
94
|
[coverage-url]: https://app.codacy.com/gh/tstyche/tstyche/coverage/dashboard
|
|
99
|
-
[discord-badge]: https://badgen.net/static/chat/on%20Discord
|
|
100
|
-
[discord-url]: https://discord.gg/gCSasd3QJq
|
package/build/tstyche.d.ts
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
1
|
import type ts from 'typescript';
|
|
2
2
|
|
|
3
|
-
declare enum CancellationReason {
|
|
4
|
-
ConfigChange = "configChange",
|
|
5
|
-
ConfigError = "configError",
|
|
6
|
-
FailFast = "failFast",
|
|
7
|
-
WatchClose = "watchClose"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
declare class CancellationToken {
|
|
11
|
-
#private;
|
|
12
|
-
get isCancellationRequested(): boolean;
|
|
13
|
-
get reason(): CancellationReason | undefined;
|
|
14
|
-
cancel(reason: CancellationReason): void;
|
|
15
|
-
reset(): void;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
3
|
declare class StoreService {
|
|
19
4
|
#private;
|
|
20
5
|
constructor();
|
|
21
6
|
getSupportedTags(): Promise<Array<string>>;
|
|
22
|
-
install(tag: string
|
|
23
|
-
load(tag: string
|
|
7
|
+
install(tag: string): Promise<string | undefined>;
|
|
8
|
+
load(tag: string): Promise<typeof ts | undefined>;
|
|
24
9
|
open(): Promise<void>;
|
|
25
10
|
update(): Promise<void>;
|
|
26
11
|
validateTag(tag: string): Promise<boolean | undefined>;
|
|
@@ -147,7 +132,6 @@ declare class Diagnostic {
|
|
|
147
132
|
static error(text: string | Array<string>, origin?: DiagnosticOrigin): Diagnostic;
|
|
148
133
|
extendWith(text: string | Array<string>, origin?: DiagnosticOrigin): Diagnostic;
|
|
149
134
|
static fromDiagnostics(diagnostics: Array<ts.Diagnostic>, compiler: typeof ts): Array<Diagnostic>;
|
|
150
|
-
static fromError(text: string | Array<string>, error: unknown): Diagnostic;
|
|
151
135
|
static warning(text: string | Array<string>, origin?: DiagnosticOrigin): Diagnostic;
|
|
152
136
|
}
|
|
153
137
|
|
|
@@ -274,12 +258,12 @@ declare enum Color {
|
|
|
274
258
|
Gray = "90"
|
|
275
259
|
}
|
|
276
260
|
|
|
277
|
-
type ScribblerNode = Array<ScribblerNode> | ScribblerJsx.Element | string | undefined;
|
|
261
|
+
type ScribblerNode = Array<ScribblerNode> | ScribblerJsx.Element | string | number | undefined;
|
|
278
262
|
type FunctionComponent = (props: Record<string, unknown>) => ScribblerJsx.Element;
|
|
279
263
|
declare namespace ScribblerJsx {
|
|
280
264
|
interface Element {
|
|
281
265
|
props: Record<string, unknown>;
|
|
282
|
-
type: FunctionComponent | string;
|
|
266
|
+
type: FunctionComponent | number | string;
|
|
283
267
|
}
|
|
284
268
|
interface ElementChildrenAttribute {
|
|
285
269
|
children: ScribblerNode;
|
|
@@ -320,7 +304,7 @@ interface TextProps {
|
|
|
320
304
|
}
|
|
321
305
|
declare function Text({ children, color, indent }: TextProps): ScribblerJsx.Element;
|
|
322
306
|
|
|
323
|
-
declare function addsPackageStepText(
|
|
307
|
+
declare function addsPackageStepText(packageVersion: string, packagePath: string): ScribblerJsx.Element;
|
|
324
308
|
|
|
325
309
|
declare function describeNameText(name: string, indent?: number): ScribblerJsx.Element;
|
|
326
310
|
|
|
@@ -485,6 +469,21 @@ declare class SelectService {
|
|
|
485
469
|
selectFiles(): Promise<Array<string>>;
|
|
486
470
|
}
|
|
487
471
|
|
|
472
|
+
declare enum CancellationReason {
|
|
473
|
+
ConfigChange = "configChange",
|
|
474
|
+
ConfigError = "configError",
|
|
475
|
+
FailFast = "failFast",
|
|
476
|
+
WatchClose = "watchClose"
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
declare class CancellationToken {
|
|
480
|
+
#private;
|
|
481
|
+
get isCancellationRequested(): boolean;
|
|
482
|
+
get reason(): CancellationReason | undefined;
|
|
483
|
+
cancel(reason: CancellationReason): void;
|
|
484
|
+
reset(): void;
|
|
485
|
+
}
|
|
486
|
+
|
|
488
487
|
declare class TSTyche {
|
|
489
488
|
#private;
|
|
490
489
|
static version: string;
|
|
@@ -512,6 +511,10 @@ declare class Environment {
|
|
|
512
511
|
* Specifies whether interactive elements should be disabled in the output.
|
|
513
512
|
*/
|
|
514
513
|
static get noInteractive(): boolean;
|
|
514
|
+
/**
|
|
515
|
+
* The base URL of the 'npm' registry to use.
|
|
516
|
+
*/
|
|
517
|
+
static get npmRegistry(): string;
|
|
515
518
|
/**
|
|
516
519
|
* The directory where to store the 'typescript' packages.
|
|
517
520
|
*/
|
|
@@ -537,8 +540,8 @@ type Event = ["config:error", {
|
|
|
537
540
|
}] | ["run:end", {
|
|
538
541
|
result: Result;
|
|
539
542
|
}] | ["store:info", {
|
|
540
|
-
|
|
541
|
-
|
|
543
|
+
packagePath: string;
|
|
544
|
+
packageVersion: string;
|
|
542
545
|
}] | ["store:error", {
|
|
543
546
|
diagnostics: Array<Diagnostic>;
|
|
544
547
|
}] | ["target:start", {
|
|
@@ -656,9 +659,8 @@ declare class ExpectDiagnosticText {
|
|
|
656
659
|
static argumentMustBeProvided(argumentNameText: string): string;
|
|
657
660
|
static componentAcceptsProps(isTypeNode: boolean): string;
|
|
658
661
|
static componentDoesNotAcceptProps(isTypeNode: boolean): string;
|
|
659
|
-
static matcherIsDeprecated(matcherNameText: string): Array<string>;
|
|
660
662
|
static matcherIsNotSupported(matcherNameText: string): string;
|
|
661
|
-
static overloadGaveTheFollowingError(
|
|
663
|
+
static overloadGaveTheFollowingError(index: number, count: number, signatureText: string): string;
|
|
662
664
|
static raisedTypeError(count?: number): string;
|
|
663
665
|
static typeArgumentMustBe(argumentNameText: string, expectedText: string): string;
|
|
664
666
|
static typeDidNotRaiseError(isTypeNode: boolean): string;
|
|
@@ -729,7 +731,6 @@ declare class ExpectService {
|
|
|
729
731
|
toAcceptProps: ToAcceptProps;
|
|
730
732
|
toBe: ToBe;
|
|
731
733
|
toBeAny: PrimitiveTypeMatcher;
|
|
732
|
-
toBeAssignable: ToBeAssignableWith;
|
|
733
734
|
toBeAssignableTo: ToBeAssignableTo;
|
|
734
735
|
toBeAssignableWith: ToBeAssignableWith;
|
|
735
736
|
toBeBigInt: PrimitiveTypeMatcher;
|
|
@@ -743,12 +744,10 @@ declare class ExpectService {
|
|
|
743
744
|
toBeUniqueSymbol: PrimitiveTypeMatcher;
|
|
744
745
|
toBeUnknown: PrimitiveTypeMatcher;
|
|
745
746
|
toBeVoid: PrimitiveTypeMatcher;
|
|
746
|
-
toEqual: ToBe;
|
|
747
747
|
toHaveProperty: ToHaveProperty;
|
|
748
748
|
toMatch: ToMatch;
|
|
749
749
|
toRaiseError: ToRaiseError;
|
|
750
750
|
constructor(compiler: typeof ts, typeChecker: TypeChecker);
|
|
751
|
-
static assertTypeChecker(typeChecker: ts.TypeChecker): typeChecker is TypeChecker;
|
|
752
751
|
match(assertion: Assertion, onDiagnostics: DiagnosticsHandler): MatchResult | undefined;
|
|
753
752
|
}
|
|
754
753
|
|