Update helper class build functions to return explicit interface types instead of anonymous values in an array #853
Labels
feature-request
A feature should be added or improved
needs-triage
The issue or PR still needs to be triaged
While working on a new construct in #849, it was mentioned that we should consider defining explicit interfaces for the return values of the build functions from our helper classes. See here for an example.
Use Case
By defining explicit interface types as the return values for the helper class build functions, we can improve the usability of the APIs. This will help consumers of the helper classes by using actual strongly-typed property names, and not have to index into arrays.
Proposed Solution
Change the helper classes build methods from this (using sns-helper as an example):
to this:
Other
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: