Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function polyfillObjectProperty<T>(
name: string,
getValue: () => T,
): void {
const descriptor = Object.getOwnPropertyDescriptor<$FlowFixMe>(object, name);
const descriptor = Object.getOwnPropertyDescriptor(object, name);
if (__DEV__ && descriptor) {
const backupName = `original${name[0].toUpperCase()}${name.slice(1)}`;
Object.defineProperty(object, backupName, descriptor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {setPlatformObject} from '../../webidl/PlatformObjects';
// IMPORTANT: The type definition for this module is defined in `HTMLCollection.js.flow`
// because Flow only supports indexers in classes in declaration files.

const REUSABLE_PROPERTY_DESCRIPTOR: {...PropertyDescriptor<unknown>, ...} = {
const REUSABLE_PROPERTY_DESCRIPTOR: {...PropertyDescriptor, ...} = {
value: {},
enumerable: true,
configurable: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {setPlatformObject} from '../../webidl/PlatformObjects';
// IMPORTANT: The Flow type definition for this module is defined in `NodeList.js.flow`
// because Flow only supports indexers in classes in declaration files.

const REUSABLE_PROPERTY_DESCRIPTOR: {...PropertyDescriptor<unknown>, ...} = {
const REUSABLE_PROPERTY_DESCRIPTOR: {...PropertyDescriptor, ...} = {
value: {},
writable: false,
};
Expand Down
Loading