-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
…rics Closes aws#28731
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** | ||
* Make a property from the specified prototype enumerable on the specific instance. | ||
*/ | ||
export function makeEnumerable(prototype: object, instance: object, propertyKey: string) { | ||
Object.defineProperty(instance, propertyKey, { | ||
...Object.getOwnPropertyDescriptor(prototype, propertyKey), | ||
enumerable: true, | ||
}); | ||
} |