Skip to content

Commit a1507f5

Browse files
Add example of code that cant be downleveled
1 parent ddf4c6a commit a1507f5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/js/integrations/sdkinfo.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,12 @@ export class SdkInfo implements Integration {
6464
});
6565
}
6666
}
67+
68+
//this is 4.0 feature and cant be downleveled
69+
type Strings = [string, string];
70+
type Numbers = [number, number];
71+
export type StrStrNumNumBool = [...Strings, ...Numbers, boolean];
72+
73+
//this will be downleveled
74+
type World = "world";
75+
export type Greeting = `hello ${World}`;

0 commit comments

Comments
 (0)