UNPKG

resin-lint

Version:

Resin.io coffeelint & coffeescope2 wrapper

12 lines (7 loc) 192 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);