79298470

Date: 2024-12-20 21:50:56
Score: 0.5
Natty:
Report link

You can use:

type PubSubEvents = {
  CHANGE_EVENT: string;
}

or add an explicit index signature:

interface PubSubEvents {
  CHANGE_EVENT: string;

  [event: string]: unknown;
}

References:

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Rohan Marko