mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: tsify extensions shim (#24355)
This commit is contained in:
@@ -55,12 +55,12 @@ const deprecate: ElectronInternal.DeprecationUtil = {
|
||||
};
|
||||
},
|
||||
|
||||
moveAPI: (fn: Function, oldUsage: string, newUsage: string) => {
|
||||
moveAPI<T extends Function> (fn: T, oldUsage: string, newUsage: string): T {
|
||||
const warn = warnOnce(oldUsage, newUsage);
|
||||
return function (this: any) {
|
||||
warn();
|
||||
return fn.apply(this, arguments);
|
||||
};
|
||||
} as any;
|
||||
},
|
||||
|
||||
// change the name of an event
|
||||
|
||||
Reference in New Issue
Block a user