couzic / lenrix

Type-safe, reactive, focusable redux store wrapper
MIT License
24 stars 1 forks source link

Type safety: computeFromField(nullable) returns non-nullable #62

Open couzic opened 5 years ago

couzic commented 5 years ago
    .computeFromField('data', data => {
      if (data === undefined) return {};
      return {
        computedValue: 'whatever
    })