UNPKG

@storybook/react

Version:

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

15 lines (14 loc) 325 B
import { parse } from './acornParser'; import { InspectionType } from './types'; export function inspectValue(value) { try { const parsingResult = parse(value); return Object.assign({}, parsingResult); } catch (e) {// do nothing. } return { inferredType: { type: InspectionType.UNKNOWN } }; }