-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix53287
mergeSymbol
checks if the resolved target can merge with t…
…he source (#58326)
- Loading branch information
Showing
36 changed files
with
740 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 8 additions & 4 deletions
12
tests/baselines/reference/checkMergedGlobalUMDSymbol.errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
tests/baselines/reference/checkerInitializationCrash.errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/node_modules/@fullcalendar/core/index.d.ts(4,10): error TS2300: Duplicate identifier 'VNode'. | ||
/node_modules/@fullcalendar/react/index.d.ts(4,19): error TS2300: Duplicate identifier 'VNode'. | ||
|
||
|
||
==== /node_modules/@fullcalendar/react/index.d.ts (1 errors) ==== | ||
import * as react from 'react'; | ||
declare global { | ||
namespace FullCalendarVDom { | ||
export import VNode = react.ReactNode; | ||
~~~~~ | ||
!!! error TS2300: Duplicate identifier 'VNode'. | ||
!!! related TS6203 /node_modules/@fullcalendar/core/index.d.ts:4:10: 'VNode' was also declared here. | ||
} | ||
} | ||
|
||
export default class FullCalendar { | ||
} | ||
|
||
==== /node_modules/@fullcalendar/core/index.d.ts (1 errors) ==== | ||
import * as preact from 'preact'; | ||
declare global { | ||
namespace FullCalendarVDom { | ||
type VNode = preact.VNode<any>; | ||
~~~~~ | ||
!!! error TS2300: Duplicate identifier 'VNode'. | ||
!!! related TS6203 /node_modules/@fullcalendar/react/index.d.ts:4:19: 'VNode' was also declared here. | ||
} | ||
} | ||
|
||
export type EventInput = any; | ||
|
||
==== /node_modules/@types/react/index.d.ts (0 errors) ==== | ||
export = React; | ||
export as namespace React; | ||
declare namespace React { | ||
type ReactNode = any; | ||
function useMemo<T>(factory: () => T, deps: undefined): T; | ||
} | ||
|
||
==== /node_modules/preact/index.d.ts (0 errors) ==== | ||
export as namespace preact; | ||
export interface VNode<P = {}> {} | ||
|
||
==== /index.tsx (0 errors) ==== | ||
import FullCalendar from "@fullcalendar/react"; | ||
import { EventInput } from "@fullcalendar/core"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
tests/baselines/reference/crashDeclareGlobalTypeofExport.errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
bar.d.ts(2,21): error TS2451: Cannot redeclare block-scoped variable 'foo'. | ||
bar.d.ts(6,11): error TS2451: Cannot redeclare block-scoped variable 'foo'. | ||
bar.d.ts(6,11): error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. | ||
|
||
|
||
==== bar.d.ts (3 errors) ==== | ||
import * as foo from './foo' | ||
export as namespace foo | ||
~~~ | ||
!!! error TS2451: Cannot redeclare block-scoped variable 'foo'. | ||
!!! related TS6203 bar.d.ts:6:11: 'foo' was also declared here. | ||
export = foo; | ||
|
||
declare global { | ||
const foo: typeof foo; | ||
~~~ | ||
!!! error TS2451: Cannot redeclare block-scoped variable 'foo'. | ||
!!! related TS6203 bar.d.ts:2:21: 'foo' was also declared here. | ||
~~~ | ||
!!! error TS2502: 'foo' is referenced directly or indirectly in its own type annotation. | ||
} | ||
|
||
==== foo.d.ts (0 errors) ==== | ||
interface Root { | ||
/** | ||
* A .default property for ES6 default import compatibility | ||
*/ | ||
default: Root; | ||
} | ||
|
||
declare const root: Root; | ||
export = root; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.