We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cae576c commit 23fa298Copy full SHA for 23fa298
packages/jest-get-type/src/index.ts
@@ -5,7 +5,13 @@
5
* LICENSE file in the root directory of this source tree.
6
*/
7
8
-import getType from './getType';
+import getTypeFunc from './getType';
9
+import isPrimitive from './isPrimitive';
10
-export default getType;
11
-export {default as isPrimitive} from './isPrimitive';
+function getType(value: unknown) {
12
+ return getTypeFunc(value);
13
+}
14
+
15
+getType.isPrimitive = isPrimitive;
16
17
+export = getType;
0 commit comments