documentation/__tests__/fixture/flow-optional-chaining.input.js
Victor 49c0f72793 feat: Babel 7 support
BREAKING CHANGE: This moves documentation.js to Babel 7. From now on,
documentation.js will only support Babel 7: please stick to older
releases if you need to support Babel 6. Additionally, this work
temporarily disables support for following dynamic imports.
2018-09-20 23:21:14 -07:00

7 lines
142 B
JavaScript

// @flow
/** foo */
const foo: { prop1?: { prop2?: string } } = { prop1: { prop2: 'value' } };
/** value */
const value = foo?.prop1?.prop2;