UNPKG

@storybook/react

Version:

Storybook for React: Develop React Component in isolation with Hot Reloading.

16 lines (15 loc) 369 B
import "core-js/modules/es.object.assign.js"; import { parse } from './acornParser'; import { InspectionType } from './types'; export function inspectValue(value) { try { var parsingResult = parse(value); return Object.assign({}, parsingResult); } catch (e) {// do nothing. } return { inferredType: { type: InspectionType.UNKNOWN } }; }