chore: revert deprecate as an internal module (#40146)
Revert "chore: restore deprecate as an internal module (#40124)"
This reverts commit 737e3de3fa
.
This commit is contained in:
parent
7e312c81ca
commit
2c88626b51
13 changed files with 40 additions and 99 deletions
29
typings/internal-electron.d.ts
vendored
29
typings/internal-electron.d.ts
vendored
|
@ -155,18 +155,6 @@ declare namespace Electron {
|
|||
_replyChannel: ReplyChannel;
|
||||
}
|
||||
|
||||
namespace Common {
|
||||
const deprecate: ElectronInternal.DeprecationUtil;
|
||||
}
|
||||
|
||||
namespace Main {
|
||||
const deprecate: ElectronInternal.DeprecationUtil;
|
||||
}
|
||||
|
||||
namespace Renderer {
|
||||
const deprecate: ElectronInternal.DeprecationUtil;
|
||||
}
|
||||
|
||||
class View {}
|
||||
|
||||
// Experimental views API
|
||||
|
@ -212,22 +200,6 @@ declare namespace Electron {
|
|||
}
|
||||
|
||||
declare namespace ElectronInternal {
|
||||
type DeprecationHandler = (message: string) => void;
|
||||
interface DeprecationUtil {
|
||||
warnOnce(oldName: string, newName?: string): () => void;
|
||||
warnOnceMessage(msg: string): () => void;
|
||||
setHandler(handler: DeprecationHandler | null): void;
|
||||
getHandler(): DeprecationHandler | null;
|
||||
warn(oldName: string, newName: string): void;
|
||||
log(message: string): void;
|
||||
removeFunction<T extends Function>(fn: T, removedName: string): T;
|
||||
renameFunction<T extends Function>(fn: T, newName: string): T;
|
||||
event(emitter: NodeJS.EventEmitter, oldName: string, newName: string, transformer?: (...args: any[]) => any[] | undefined): void;
|
||||
removeProperty<T extends Object, K extends (keyof T & string)>(object: T, propertyName: K, onlyForValues?: any[]): T;
|
||||
renameProperty<T extends Object, K extends (keyof T & string)>(object: T, oldName: string, newName: K): T;
|
||||
moveAPI<T extends Function>(fn: T, oldUsage: string, newUsage: string): T;
|
||||
}
|
||||
|
||||
interface DesktopCapturer {
|
||||
startHandling(captureWindow: boolean, captureScreen: boolean, thumbnailSize: Electron.Size, fetchWindowIcons: boolean): void;
|
||||
_onerror?: (error: string) => void;
|
||||
|
@ -292,7 +264,6 @@ declare namespace ElectronInternal {
|
|||
interface ModuleEntry {
|
||||
name: string;
|
||||
loader: ModuleLoader;
|
||||
private?: boolean;
|
||||
}
|
||||
|
||||
interface UtilityProcessWrapper extends NodeJS.EventEmitter {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue