mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
38 lines
1.3 KiB
Diff
38 lines
1.3 KiB
Diff
--- old.jsDeclarationsNonIdentifierInferredNames.js
|
|
+++ new.jsDeclarationsNonIdentifierInferredNames.js
|
|
@@= skipped -15, +15 lines =@@
|
|
|
|
|
|
//// [jsDeclarationsNonIdentifierInferredNames.d.ts]
|
|
-export function ExampleFunctionalComponent({ "data-testid": dataTestId, [dynPropName]: dynProp }: {
|
|
+declare const dynPropName = "data-dyn";
|
|
+export declare const ExampleFunctionalComponent: ({ "data-testid": dataTestId, [dynPropName]: dynProp }: {
|
|
"data-dyn": any;
|
|
"data-testid": any;
|
|
-}): JSX.Element;
|
|
-declare const dynPropName: "data-dyn";
|
|
+}) => JSX.Element;
|
|
export {};
|
|
|
|
|
|
//// [DtsFileErrors]
|
|
|
|
|
|
-out/jsDeclarationsNonIdentifierInferredNames.d.ts(4,5): error TS2503: Cannot find namespace 'JSX'.
|
|
+out/jsDeclarationsNonIdentifierInferredNames.d.ts(5,7): error TS2503: Cannot find namespace 'JSX'.
|
|
|
|
|
|
==== out/jsDeclarationsNonIdentifierInferredNames.d.ts (1 errors) ====
|
|
- export function ExampleFunctionalComponent({ "data-testid": dataTestId, [dynPropName]: dynProp }: {
|
|
+ declare const dynPropName = "data-dyn";
|
|
+ export declare const ExampleFunctionalComponent: ({ "data-testid": dataTestId, [dynPropName]: dynProp }: {
|
|
"data-dyn": any;
|
|
"data-testid": any;
|
|
- }): JSX.Element;
|
|
- ~~~
|
|
+ }) => JSX.Element;
|
|
+ ~~~
|
|
!!! error TS2503: Cannot find namespace 'JSX'.
|
|
- declare const dynPropName: "data-dyn";
|
|
export {};
|
|
|