@teambit/schema 0.0.740 → 0.0.741

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,10 +14,6 @@ export function myFunc(a = 4, b = 5): number {
14
14
  return a + b;
15
15
  }
16
16
 
17
- // import { Bar } from './button';
18
-
19
- // export { Button } from './button';
20
- // export type { ButtonProps } from './button';
21
17
  export * from './button';
22
18
 
23
19
  export function Hi() {}
@@ -59,9 +55,6 @@ export interface Hello {
59
55
  }
60
56
 
61
57
  const obj = { a: 1, b: 2 };
62
- // export const obj = () => ({ a: 1, b: 2 });
63
- // export function getObj(a: string) { return { a: 1, b: 2 } };
64
- // export function getObj(a: string, func: (b: number) => string, { a: any }) { return { a: 1, b: 2 } };
65
58
 
66
59
  export const a1: typeof obj = { a: 5, b: 9 };
67
60
 
@@ -109,3 +102,15 @@ interface config {
109
102
  someField: { a: string; b: boolean };
110
103
  }
111
104
  export type IndexedAccessType = config['someField'];
105
+
106
+ const computedName = 'str';
107
+ export interface ComputedNameWithType {
108
+ [computedName]: boolean;
109
+ }
110
+ export interface ComputedNameNoType {
111
+ [computedName];
112
+ }
113
+
114
+ type World1 = 'world1-a' | 'world1-b';
115
+ type World2 = 'world2';
116
+ export type templateLiteralType = `hello ${World1} hi ${World2}`;