Skip to content

Commit 0a24dee

Browse files
hanzhangyusandersn
andauthored
fix: add this type for Reflect.defineProperty (#33544)
Co-authored-by: Nathan Shively-Sanders <[email protected]>
1 parent 112dd24 commit 0a24dee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/es2015.reflect.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ declare namespace Reflect {
2424
* @param propertyKey The property name.
2525
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
2626
*/
27-
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
27+
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean;
2828

2929
/**
3030
* Removes a property from an object, equivalent to `delete target[propertyKey]`,

0 commit comments

Comments
 (0)