-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91084b6
commit a885683
Showing
3 changed files
with
35 additions
and
16 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
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,21 @@ | ||
declare module 'country-emoji' {} | ||
var a: Element['nodeName']; | ||
var a3: Omit<T, 'af'>; | ||
|
||
function Button({ t = 'name' }: { t: string }) {} | ||
// var aa: 'abc' = 'abc'; | ||
var a4: 'abc' | 'name' | undefined = 'abc'; | ||
|
||
// type T = { name: 'b' }; | ||
// var a5: T = { name: 'b' }; | ||
|
||
enum T2 { | ||
howard = 1, | ||
'a b' = 2, | ||
} | ||
var a6 = T2['howard']; | ||
|
||
function Button2({ t = 'name' }: { t: 'name' }) {} | ||
|
||
type Ta = { t?: 'name' | 'abc' }; | ||
function Button3({ t = 'name' }: Ta) {} |
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