Get all the props of a default known system's object (i.e effectively, its prototype).
Note: used for excluding these prototype props from the instance props, when own: true is passed & we know nothing else about the value.
Due to the way TypeScript works, it can't infer the prototype chain of custom classes at compile time, so it returns never for custom classes.
Get all the props of a default known system's object (i.e effectively, its prototype).
Note: used for excluding these prototype props from the instance props, when
own: true
is passed & we know nothing else about the value. Due to the way TypeScript works, it can't infer the prototype chain of custom classes at compile time, so it returnsnever
for custom classes.