Ambiguity

What happens when it's not obvious what an identifier in some code is?


ts index.ts
type A = {}
type A = {}

index.ts:1:6 - error TS2300: Duplicate identifier 'A'.

1 type A = {}
       ~

index.ts:2:6 - error TS2300: Duplicate identifier 'A'.

2 type A = {}
       ~


Found 2 errors.