@teambit/schema 0.0.739 → 0.0.742

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.
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const BasicButton: () => JSX.Element;
3
+ export declare const ButtonWithCustomStyles: () => JSX.Element;
4
+ export declare const ButtonWithIcon: () => JSX.Element;
5
+ export declare const ButtonAsALink: () => JSX.Element;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.ButtonWithIcon = exports.ButtonWithCustomStyles = exports.ButtonAsALink = exports.BasicButton = void 0;
9
+
10
+ function _react() {
11
+ const data = _interopRequireDefault(require("react"));
12
+
13
+ _react = function () {
14
+ return data;
15
+ };
16
+
17
+ return data;
18
+ }
19
+
20
+ function _button() {
21
+ const data = require("./button");
22
+
23
+ _button = function () {
24
+ return data;
25
+ };
26
+
27
+ return data;
28
+ }
29
+
30
+ /* eslint-disable no-alert */
31
+
32
+ /* eslint-disable @typescript-eslint/no-unused-vars */
33
+ const BasicButton = () => {
34
+ return /*#__PURE__*/_react().default.createElement(_button().Button, null, "click me");
35
+ };
36
+
37
+ exports.BasicButton = BasicButton;
38
+
39
+ const ButtonWithCustomStyles = () => {
40
+ return /*#__PURE__*/_react().default.createElement(_button().Button, {
41
+ style: {
42
+ background: 'red'
43
+ }
44
+ }, "click me");
45
+ };
46
+
47
+ exports.ButtonWithCustomStyles = ButtonWithCustomStyles;
48
+
49
+ const ButtonWithIcon = () => {
50
+ return /*#__PURE__*/_react().default.createElement(_button().Button, null, "click me");
51
+ };
52
+
53
+ exports.ButtonWithIcon = ButtonWithIcon;
54
+
55
+ const ButtonAsALink = () => {
56
+ return /*#__PURE__*/_react().default.createElement(_button().Button, {
57
+ href: "https://bit.dev"
58
+ }, "Bit");
59
+ };
60
+
61
+ exports.ButtonAsALink = ButtonAsALink;
62
+
63
+ //# sourceMappingURL=button.composition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["BasicButton","ButtonWithCustomStyles","background","ButtonWithIcon","ButtonAsALink"],"sources":["button.composition.tsx"],"sourcesContent":["/* eslint-disable no-alert */\n/* eslint-disable @typescript-eslint/no-unused-vars */\nimport React from 'react';\nimport { Button } from './button';\n\nexport const BasicButton = () => {\n return <Button>click me</Button>;\n};\n\nexport const ButtonWithCustomStyles = () => {\n return <Button style={{ background: 'red' }}>click me</Button>;\n};\n\nexport const ButtonWithIcon = () => {\n return (\n <Button>\n {/* <Image src=\"https://static.bit.dev/bit-logo.svg\" /> */}\n click me\n </Button>\n );\n};\n\nexport const ButtonAsALink = () => {\n return <Button href=\"https://bit.dev\">Bit</Button>;\n};\n"],"mappings":";;;;;;;;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAHA;;AACA;AAIO,MAAMA,WAAW,GAAG,MAAM;EAC/B,oBAAO,+BAAC,gBAAD,mBAAP;AACD,CAFM;;;;AAIA,MAAMC,sBAAsB,GAAG,MAAM;EAC1C,oBAAO,+BAAC,gBAAD;IAAQ,KAAK,EAAE;MAAEC,UAAU,EAAE;IAAd;EAAf,cAAP;AACD,CAFM;;;;AAIA,MAAMC,cAAc,GAAG,MAAM;EAClC,oBACE,+BAAC,gBAAD,mBADF;AAMD,CAPM;;;;AASA,MAAMC,aAAa,GAAG,MAAM;EACjC,oBAAO,+BAAC,gBAAD;IAAQ,IAAI,EAAC;EAAb,SAAP;AACD,CAFM"}
@@ -0,0 +1,20 @@
1
+ import React, { ReactNode } from 'react';
2
+ export declare type ButtonElementType = 'a' | 'button';
3
+ export declare type ButtonProps = {
4
+ /**
5
+ * children of the Button.
6
+ */
7
+ children: ReactNode;
8
+ /**
9
+ * link to target page. once href is used, Button is considered an A tag.
10
+ */
11
+ href?: string;
12
+ /**
13
+ * class names to inject.
14
+ */
15
+ className?: string;
16
+ } & React.ButtonHTMLAttributes<HTMLButtonElement>;
17
+ export declare function Button(props: ButtonProps): JSX.Element;
18
+ export declare class Bar {
19
+ foo(): void;
20
+ }
@@ -0,0 +1,97 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.Bar = void 0;
9
+ exports.Button = Button;
10
+
11
+ function _extends2() {
12
+ const data = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
+
14
+ _extends2 = function () {
15
+ return data;
16
+ };
17
+
18
+ return data;
19
+ }
20
+
21
+ function _defineProperty2() {
22
+ const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
23
+
24
+ _defineProperty2 = function () {
25
+ return data;
26
+ };
27
+
28
+ return data;
29
+ }
30
+
31
+ function _react() {
32
+ const data = _interopRequireWildcard(require("react"));
33
+
34
+ _react = function () {
35
+ return data;
36
+ };
37
+
38
+ return data;
39
+ }
40
+
41
+ function _baseReactNavigation() {
42
+ const data = require("@teambit/base-react.navigation.link");
43
+
44
+ _baseReactNavigation = function () {
45
+ return data;
46
+ };
47
+
48
+ return data;
49
+ }
50
+
51
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
52
+
53
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
54
+
55
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
56
+
57
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2().default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
58
+
59
+ function Button(props) {
60
+ var _props$href, _props$href2;
61
+
62
+ const ref = (0, _react().useRef)(); // const { buttonProps } = useButton(
63
+ // {
64
+ // ...props,
65
+ // elementType: props.href ? 'a' : undefined,
66
+ // },
67
+ // // @ts-ignore figure this out.
68
+ // ref
69
+ // );
70
+
71
+ const allProps = _objectSpread({}, props);
72
+
73
+ const external = ((_props$href = props.href) === null || _props$href === void 0 ? void 0 : _props$href.startsWith('http:')) || ((_props$href2 = props.href) === null || _props$href2 === void 0 ? void 0 : _props$href2.startsWith('https:'));
74
+ return /*#__PURE__*/_react().default.createElement(_react().default.Fragment, null, !props.href ?
75
+ /*#__PURE__*/
76
+ // @ts-ignore
77
+ _react().default.createElement("button", (0, _extends2().default)({
78
+ className: props.className,
79
+ ref: ref
80
+ }, allProps), props.children) :
81
+ /*#__PURE__*/
82
+ // @ts-ignore
83
+ _react().default.createElement(_baseReactNavigation().Link, (0, _extends2().default)({
84
+ external: external,
85
+ ref: ref,
86
+ className: props.className
87
+ }, allProps), props.children));
88
+ }
89
+
90
+ class Bar {
91
+ foo() {}
92
+
93
+ }
94
+
95
+ exports.Bar = Bar;
96
+
97
+ //# sourceMappingURL=button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Button","props","ref","useRef","allProps","external","href","startsWith","className","children","Bar","foo"],"sources":["button.tsx"],"sourcesContent":["/* eslint-disable import/no-unresolved */\nimport React, { ReactNode, useRef } from 'react';\n// @ts-ignore\n// import { useButton } from '@react-aria/button';\nimport { Link } from '@teambit/base-react.navigation.link';\n\nexport type ButtonElementType = 'a' | 'button';\n\nexport type ButtonProps = {\n /**\n * children of the Button.\n */\n children: ReactNode;\n\n /**\n * link to target page. once href is used, Button is considered an A tag.\n */\n href?: string;\n\n /**\n * class names to inject.\n */\n className?: string;\n} & React.ButtonHTMLAttributes<HTMLButtonElement>;\n\nexport function Button(props: ButtonProps) {\n const ref = useRef();\n\n // const { buttonProps } = useButton(\n // {\n // ...props,\n // elementType: props.href ? 'a' : undefined,\n // },\n // // @ts-ignore figure this out.\n // ref\n // );\n\n const allProps = {\n // ...buttonProps,\n ...props,\n };\n const external = props.href?.startsWith('http:') || props.href?.startsWith('https:');\n\n return (\n <>\n {!props.href ? (\n // @ts-ignore\n <button className={props.className} ref={ref} {...allProps}>\n {props.children}\n </button>\n ) : (\n // @ts-ignore\n <Link external={external} ref={ref} className={props.className} {...allProps}>\n {props.children}\n </Link>\n )}\n </>\n );\n}\n\nexport class Bar {\n foo() {}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;;;;;;;;;AAqBO,SAASA,MAAT,CAAgBC,KAAhB,EAAoC;EAAA;;EACzC,MAAMC,GAAG,GAAG,IAAAC,eAAA,GAAZ,CADyC,CAGzC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;EAEA,MAAMC,QAAQ,qBAETH,KAFS,CAAd;;EAIA,MAAMI,QAAQ,GAAG,gBAAAJ,KAAK,CAACK,IAAN,4DAAYC,UAAZ,CAAuB,OAAvB,uBAAmCN,KAAK,CAACK,IAAzC,iDAAmC,aAAYC,UAAZ,CAAuB,QAAvB,CAAnC,CAAjB;EAEA,oBACE,gEACG,CAACN,KAAK,CAACK,IAAP;EAAA;EACC;EACA;IAAQ,SAAS,EAAEL,KAAK,CAACO,SAAzB;IAAoC,GAAG,EAAEN;EAAzC,GAAkDE,QAAlD,GACGH,KAAK,CAACQ,QADT,CAFD;EAAA;EAMC;EACA,+BAAC,2BAAD;IAAM,QAAQ,EAAEJ,QAAhB;IAA0B,GAAG,EAAEH,GAA/B;IAAoC,SAAS,EAAED,KAAK,CAACO;EAArD,GAAoEJ,QAApE,GACGH,KAAK,CAACQ,QADT,CARJ,CADF;AAeD;;AAEM,MAAMC,GAAN,CAAU;EACfC,GAAG,GAAG,CAAE;;AADO"}
@@ -0,0 +1,80 @@
1
+ /**
2
+ *
3
+ * @param a this is A
4
+ * @param b this is B
5
+ * @returns
6
+ */
7
+ export declare function myFunc(a?: number, b?: number): number;
8
+ export * from './button';
9
+ export declare function Hi(): void;
10
+ export declare const a = 4, b: 5;
11
+ export * as Compositions from './button.composition';
12
+ export declare const HiThere = "HiThere";
13
+ export declare const Function: () => void;
14
+ export declare const Array: string[];
15
+ declare class Foo {
16
+ }
17
+ declare class ClassSomething {
18
+ readonly da: 'dsa';
19
+ app: string;
20
+ constructor(da: 'dsa');
21
+ a(): Foo;
22
+ get getter(): string;
23
+ set setter(a: boolean);
24
+ }
25
+ export { ClassSomething };
26
+ export declare type IndexSig = {
27
+ [key: string]: boolean;
28
+ };
29
+ export interface Hello {
30
+ propertySig: () => void;
31
+ methodSig(): string;
32
+ }
33
+ declare const obj: {
34
+ a: number;
35
+ b: number;
36
+ };
37
+ export declare const a1: typeof obj;
38
+ export declare type TypeOperator = keyof typeof obj;
39
+ declare class Bar {
40
+ foo(): void;
41
+ }
42
+ export declare const getBar: (bar: Bar) => Bar;
43
+ export declare const tuple: ([a, b, c]: [string, Function, Record<string, any>]) => void;
44
+ export declare enum Food {
45
+ Falafel = 0,
46
+ Hummus = 1,
47
+ Tahini = 2
48
+ }
49
+ export declare function getPromise(): Promise<string>;
50
+ declare class T1 {
51
+ }
52
+ declare class T2 {
53
+ }
54
+ declare class T3<T, K> {
55
+ }
56
+ export declare type TypeRefWithArgs = T3<T1, T2>;
57
+ export declare type ParenthesizedType = (T1 | T2)[];
58
+ export declare function typePredicateFn(str: any): str is string;
59
+ export declare function typePredicateNoTypeFn(condition: any, msg?: string): asserts condition;
60
+ export declare function objectBindingElements({ prop }: {
61
+ prop?: number | undefined;
62
+ }): Promise<number>;
63
+ export declare function arrayBindingElements([prop]: [string]): Promise<string>;
64
+ interface config {
65
+ someField: {
66
+ a: string;
67
+ b: boolean;
68
+ };
69
+ }
70
+ export declare type IndexedAccessType = config['someField'];
71
+ declare const computedName = "str";
72
+ export interface ComputedNameWithType {
73
+ [computedName]: boolean;
74
+ }
75
+ export interface ComputedNameNoType {
76
+ [computedName]: any;
77
+ }
78
+ declare type World1 = 'world1-a' | 'world1-b';
79
+ declare type World2 = 'world2';
80
+ export declare type templateLiteralType = `hello ${World1} hi ${World2}`;
@@ -0,0 +1,207 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ require("core-js/modules/es.array.iterator.js");
6
+
7
+ require("core-js/modules/es.promise.js");
8
+
9
+ Object.defineProperty(exports, "__esModule", {
10
+ value: true
11
+ });
12
+ var _exportNames = {
13
+ myFunc: true,
14
+ Hi: true,
15
+ a: true,
16
+ b: true,
17
+ HiThere: true,
18
+ Function: true,
19
+ Array: true,
20
+ ClassSomething: true,
21
+ a1: true,
22
+ getBar: true,
23
+ tuple: true,
24
+ Food: true,
25
+ getPromise: true,
26
+ typePredicateFn: true,
27
+ typePredicateNoTypeFn: true,
28
+ objectBindingElements: true,
29
+ arrayBindingElements: true,
30
+ Compositions: true
31
+ };
32
+ exports.Function = exports.Food = exports.Compositions = exports.ClassSomething = exports.Array = void 0;
33
+ exports.Hi = Hi;
34
+ exports.a1 = exports.a = exports.HiThere = void 0;
35
+ exports.arrayBindingElements = arrayBindingElements;
36
+ exports.getBar = exports.b = void 0;
37
+ exports.getPromise = getPromise;
38
+ exports.myFunc = myFunc;
39
+ exports.objectBindingElements = objectBindingElements;
40
+ exports.tuple = void 0;
41
+ exports.typePredicateFn = typePredicateFn;
42
+ exports.typePredicateNoTypeFn = typePredicateNoTypeFn;
43
+
44
+ function _defineProperty2() {
45
+ const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
46
+
47
+ _defineProperty2 = function () {
48
+ return data;
49
+ };
50
+
51
+ return data;
52
+ }
53
+
54
+ var _button = require("./button");
55
+
56
+ Object.keys(_button).forEach(function (key) {
57
+ if (key === "default" || key === "__esModule") return;
58
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
59
+ if (key in exports && exports[key] === _button[key]) return;
60
+ Object.defineProperty(exports, key, {
61
+ enumerable: true,
62
+ get: function () {
63
+ return _button[key];
64
+ }
65
+ });
66
+ });
67
+
68
+ function _Compositions() {
69
+ const data = _interopRequireWildcard(require("./button.composition"));
70
+
71
+ _Compositions = function () {
72
+ return data;
73
+ };
74
+
75
+ return data;
76
+ }
77
+
78
+ Object.defineProperty(exports, "Compositions", {
79
+ enumerable: true,
80
+ get: function () {
81
+ return _Compositions();
82
+ }
83
+ });
84
+
85
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
86
+
87
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
88
+
89
+ /* eslint-disable @typescript-eslint/no-empty-function */
90
+
91
+ /* eslint-disable @typescript-eslint/no-shadow */
92
+
93
+ /* eslint-disable @typescript-eslint/no-unused-vars */
94
+
95
+ /* eslint-disable @typescript-eslint/prefer-as-const */
96
+
97
+ /* eslint-disable one-var */
98
+
99
+ /* eslint-disable max-classes-per-file */
100
+
101
+ /**
102
+ *
103
+ * @param a this is A
104
+ * @param b this is B
105
+ * @returns
106
+ */
107
+ function myFunc(a = 4, b = 5) {
108
+ return a + b;
109
+ }
110
+
111
+ function Hi() {}
112
+
113
+ const a = 4,
114
+ b = 5;
115
+ exports.b = b;
116
+ exports.a = a;
117
+ const HiThere = 'HiThere';
118
+ exports.HiThere = HiThere;
119
+
120
+ const Function = () => {};
121
+
122
+ exports.Function = Function;
123
+ const Array = ['hi', 'there'];
124
+ exports.Array = Array;
125
+
126
+ class Foo {}
127
+
128
+ class ClassSomething {
129
+ constructor(da) {
130
+ this.da = da;
131
+ (0, _defineProperty2().default)(this, "app", '');
132
+ }
133
+
134
+ a() {
135
+ return new Foo();
136
+ }
137
+
138
+ get getter() {
139
+ return 'hi';
140
+ }
141
+
142
+ set setter(a) {}
143
+
144
+ }
145
+
146
+ exports.ClassSomething = ClassSomething;
147
+ const obj = {
148
+ a: 1,
149
+ b: 2
150
+ };
151
+ const a1 = {
152
+ a: 5,
153
+ b: 9
154
+ };
155
+ exports.a1 = a1;
156
+
157
+ // this is for Jump in the definition
158
+ class Bar {
159
+ foo() {}
160
+
161
+ }
162
+
163
+ const getBar = bar => new Bar();
164
+
165
+ exports.getBar = getBar;
166
+
167
+ const tuple = ([a, b, c]) => {};
168
+
169
+ exports.tuple = tuple;
170
+ let Food;
171
+ exports.Food = Food;
172
+
173
+ (function (Food) {
174
+ Food[Food["Falafel"] = 0] = "Falafel";
175
+ Food[Food["Hummus"] = 1] = "Hummus";
176
+ Food[Food["Tahini"] = 2] = "Tahini";
177
+ })(Food || (exports.Food = Food = {}));
178
+
179
+ async function getPromise() {
180
+ return 'promise';
181
+ }
182
+
183
+ class T1 {}
184
+
185
+ class T2 {}
186
+
187
+ class T3 {}
188
+
189
+ function typePredicateFn(str) {
190
+ return str;
191
+ }
192
+
193
+ function typePredicateNoTypeFn(condition, msg) {}
194
+
195
+ async function objectBindingElements({
196
+ prop = 1
197
+ }) {
198
+ return prop;
199
+ }
200
+
201
+ async function arrayBindingElements([prop]) {
202
+ return prop;
203
+ }
204
+
205
+ const computedName = 'str';
206
+
207
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["myFunc","a","b","Hi","HiThere","Function","Array","Foo","ClassSomething","constructor","da","getter","setter","obj","a1","Bar","foo","getBar","bar","tuple","c","Food","getPromise","T1","T2","T3","typePredicateFn","str","typePredicateNoTypeFn","condition","msg","objectBindingElements","prop","arrayBindingElements","computedName"],"sources":["index.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\n/* eslint-disable @typescript-eslint/no-shadow */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable @typescript-eslint/prefer-as-const */\n/* eslint-disable one-var */\n/* eslint-disable max-classes-per-file */\n/**\n *\n * @param a this is A\n * @param b this is B\n * @returns\n */\nexport function myFunc(a = 4, b = 5): number {\n return a + b;\n}\n\nexport * from './button';\n\nexport function Hi() {}\n\nexport const a = 4,\n b: 5 = 5;\n\nexport * as Compositions from './button.composition';\n\nexport const HiThere = 'HiThere';\n\nexport const Function = () => {};\n\nexport const Array = ['hi', 'there'];\n\nclass Foo {}\n\nclass ClassSomething {\n app = '';\n constructor(readonly da: 'dsa') {}\n\n a() {\n return new Foo();\n }\n get getter() {\n return 'hi';\n }\n\n set setter(a: boolean) {}\n}\n\nexport { ClassSomething };\n\nexport type IndexSig = { [key: string]: boolean };\n\nexport interface Hello {\n propertySig: () => void;\n methodSig(): string;\n}\n\nconst obj = { a: 1, b: 2 };\n\nexport const a1: typeof obj = { a: 5, b: 9 };\n\nexport type TypeOperator = keyof typeof obj;\n\n// this is for Jump in the definition\nclass Bar {\n foo() {}\n}\nexport const getBar = (bar: Bar) => new Bar();\n\nexport const tuple = ([a, b, c]: [string, Function, Record<string, any>]) => {};\n\nexport enum Food {\n Falafel,\n Hummus,\n Tahini,\n}\n\nexport async function getPromise(): Promise<string> {\n return 'promise';\n}\n\nclass T1 {}\nclass T2 {}\nclass T3<T, K> {}\nexport type TypeRefWithArgs = T3<T1, T2>;\n\nexport type ParenthesizedType = (T1 | T2)[];\n\nexport function typePredicateFn(str: any): str is string {\n return str;\n}\n\nexport function typePredicateNoTypeFn(condition: any, msg?: string): asserts condition {}\n\nexport async function objectBindingElements({ prop = 1 }) {\n return prop;\n}\nexport async function arrayBindingElements([prop]: [string]) {\n return prop;\n}\n\ninterface config {\n someField: { a: string; b: boolean };\n}\nexport type IndexedAccessType = config['someField'];\n\nconst computedName = 'str';\nexport interface ComputedNameWithType {\n [computedName]: boolean;\n}\nexport interface ComputedNameNoType {\n [computedName];\n}\n\ntype World1 = 'world1-a' | 'world1-b';\ntype World2 = 'world2';\nexport type templateLiteralType = `hello ${World1} hi ${World2}`;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;;;;;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