79184267

Date: 2024-11-13 09:47:59
Score: 1
Natty:
Report link

I think I have seen similar question in stackoverflow. however I am unable to find the link to that for reference. However, please try initializing with a helper function - create

function create<T extends Enforcer>(instance: T, keys: (keyof T['keys'])[]): Inherit<T> {
    return [instance, keys];
}

const h = create(p, ['a', 'b']);

Compile

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sharad Paul