Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bgenia committed Jan 18, 2025
1 parent b0a1df3 commit 12b9bd4
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/// <reference path='fourslash.ts'/>

//// enum Key {
//// A = "a",
//// B = "b"
//// }
////
//// // Produces members with union name types (Key.A | "a", Key.B | "b")
//// type [|Foo|] = { [K in Key | `${Key}`]: 1 }
////
//// // Should produce the same type as Foo
//// type [|Bar|] = { [K in keyof Foo]: 1 }

const [Foo, Bar] = test.ranges()

verify.quickInfoAt(Foo,
`type Foo = {
a: 1;
b: 1;
}`)

verify.quickInfoAt(Bar,
`type Bar = {
a: 1;
b: 1;
}`)

0 comments on commit 12b9bd4

Please sign in to comment.