Skip to content

Commit

Permalink
avoid breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 28, 2019
1 parent cae576c commit 23fa298
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/jest-get-type/src/index.ts
Expand Up @@ -5,7 +5,13 @@
* LICENSE file in the root directory of this source tree.
*/

import getType from './getType';
import getTypeFunc from './getType';
import isPrimitive from './isPrimitive';

export default getType;
export {default as isPrimitive} from './isPrimitive';
function getType(value: unknown) {
return getTypeFunc(value);
}

getType.isPrimitive = isPrimitive;

export = getType;

0 comments on commit 23fa298

Please sign in to comment.