79174589

Date: 2024-11-10 09:49:01
Score: 2
Natty:
Report link

Sorry @jcalz, I was to answer you specifically yesterday but was too tired and simply forgot it.

Yes, what you mention on your comment is what I was after. Little I knew I was taking TS to it's pants, so I finally plan to settle on something like this:

[
  /* One entry */
  {
    string: 'foo',

    function_1 (x) {
      let ret : number = x;
      return (ret);
    },

    function_2 (x) {
      let ret: number = x;
      return (ret);
    }
  },

  /* Another entry */
  ...
]

This is a construction I've seen for example, in prosemirror's schema (except for mine's being inside an array). If that's also a problem I'll then reparent these with an object and get rid of the array altogether.

For those calling it laziness: I wouldn't have devoted a whole day to try to solve this if that was the particular case.

Well, thank you all for you time and you attention!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @jcalz
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user1476851