We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19c54ba commit f078803Copy full SHA for f078803
src/decorators.ts
@@ -14,7 +14,8 @@ export const Inspectable = <T, P = object>(
14
serialize(instance) {
15
const payload = (options.serialize?.(instance) || {}) as P;
16
17
- for (const property of (Reflect.getMetadata(kInspectProperties, instance) || [])) {
+ // eslint-disable-next-line @typescript-eslint/ban-types, max-len
18
+ for (const property of (Reflect.getMetadata(kInspectProperties, instance as Object) || [])) {
19
payload[property as keyof P] = (instance as unknown as P)[property as keyof P];
20
}
21
0 commit comments