UNPKG

resin-lint

Version:

Resin.io coffeelint & coffeescope2 wrapper

25 lines (20 loc) 225 B
const fn = () => ({ a: 1, b: 2, }); const { a, b } = fn(); const x = a ? { key: 'A', value: 'B', } : {}; interface A { aProp: | { key: string; value: string; } | string; } console.log(a, b);