Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
a05419de
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a05419de
编写于
7月 17, 2018
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update d.ts (node.js, electron) to latest
上级
eda31573
变更
2
展开全部
显示空白变更内容
内联
并排
Showing
2 changed file
with
203 addition
and
80 deletion
+203
-80
src/typings/electron.d.ts
src/typings/electron.d.ts
+41
-16
src/typings/node.d.ts
src/typings/node.d.ts
+162
-64
未找到文件。
src/typings/electron.d.ts
浏览文件 @
a05419de
// Type definitions for Electron 2.0.
0-beta.2
// Type definitions for Electron 2.0.
5
// Project: http://electron.atom.io/
// Definitions by: The Electron Team <https://github.com/electron/electron>
// Definitions: https://github.com/electron/electron-typescript-definitions
...
...
@@ -204,7 +204,9 @@ declare namespace Electron {
* event.preventDefault() will prevent the default behaviour, which is terminating
* the application. Note: If application quit was initiated by
* autoUpdater.quitAndInstall() then before-quit is emitted after emitting close
* event on all windows and closing them.
* event on all windows and closing them. Note: On Windows, this event will not be
* emitted if the app is closed due to a shutdown/restart of the system or a user
* logout.
*/
on
(
event
:
'
before-quit
'
,
listener
:
(
event
:
Event
)
=>
void
):
this
;
once
(
event
:
'
before-quit
'
,
listener
:
(
event
:
Event
)
=>
void
):
this
;
...
...
@@ -446,7 +448,9 @@ declare namespace Electron {
removeListener
(
event
:
'
open-url
'
,
listener
:
(
event
:
Event
,
url
:
string
)
=>
void
):
this
;
/**
* Emitted when the application is quitting.
* Emitted when the application is quitting. Note: On Windows, this event will not
* be emitted if the app is closed due to a shutdown/restart of the system or a
* user logout.
*/
on
(
event
:
'
quit
'
,
listener
:
(
event
:
Event
,
exitCode
:
number
)
=>
void
):
this
;
...
...
@@ -587,7 +591,9 @@ declare namespace Electron {
* Emitted when all windows have been closed and the application will quit. Calling
* event.preventDefault() will prevent the default behaviour, which is terminating
* the application. See the description of the window-all-closed event for the
* differences between the will-quit and window-all-closed events.
* differences between the will-quit and window-all-closed events. Note: On
* Windows, this event will not be emitted if the app is closed due to a
* shutdown/restart of the system or a user logout.
*/
on
(
event
:
'
will-quit
'
,
listener
:
(
event
:
Event
)
=>
void
):
this
;
once
(
event
:
'
will-quit
'
,
listener
:
(
event
:
Event
)
=>
void
):
this
;
...
...
@@ -659,9 +665,10 @@ declare namespace Electron {
getGPUFeatureStatus
():
GPUFeatureStatus
;
getJumpListSettings
():
JumpListSettings
;
/**
* Note: When distributing your packaged app, you have to also ship the locales
* folder. Note: On Windows you have to call it after the ready events gets
* emitted.
* To set the locale, you'll want to use a command line switch at app startup,
* which may be found here. Note: When distributing your packaged app, you have to
* also ship the locales folder. Note: On Windows you have to call it after the
* ready events gets emitted.
*/
getLocale
():
string
;
/**
...
...
@@ -975,6 +982,13 @@ declare namespace Electron {
static
fromId
(
id
:
number
):
BrowserView
;
static
fromWebContents
(
webContents
:
WebContents
):
BrowserView
|
null
;
static
getAllViews
():
BrowserView
[];
/**
* Force closing the view, the unload and beforeunload events won't be emitted for
* the web page. After you're done with a view, call this function in order to free
* memory and other resources as soon as possible.
*/
destroy
():
void
;
isDestroyed
():
boolean
;
setAutoResize
(
options
:
AutoResizeOptions
):
void
;
setBackgroundColor
(
color
:
string
):
void
;
/**
...
...
@@ -6757,7 +6771,8 @@ declare namespace Electron {
/**
* Add a type of vibrancy effect to the window, only on macOS. Can be
* appearance-based, light, dark, titlebar, selection, menu, popover, sidebar,
* medium-light or ultra-dark.
* medium-light or ultra-dark. Please note that using frame: false in combination
* with a vibrancy value requires that you use a non-default titleBarStyle as well.
*/
vibrancy
?:
(
'
appearance-based
'
|
'
light
'
|
'
dark
'
|
'
titlebar
'
|
'
selection
'
|
'
menu
'
|
'
popover
'
|
'
sidebar
'
|
'
medium-light
'
|
'
ultra-dark
'
);
/**
...
...
@@ -7967,9 +7982,9 @@ declare namespace Electron {
interface
ProgressBarOptions
{
/**
* Mode for the progress bar. Can be none, normal, indeterminate, error
,
or paused.
* Mode for the progress bar. Can be none, normal, indeterminate, error or paused.
*/
mode
:
(
'
none
'
|
'
normal
'
|
'
indeterminate
'
|
'
error
'
);
mode
:
(
'
none
'
|
'
normal
'
|
'
indeterminate
'
|
'
error
'
|
'
paused
'
);
}
interface
Provider
{
...
...
@@ -8177,11 +8192,26 @@ declare namespace Electron {
}
interface
SizeOptions
{
/**
* true to make the webview container automatically resize within the bounds
* specified by the attributes normal, min and max.
*/
enableAutoSize
?:
boolean
;
/**
* Normal size of the page. This can be used in combination with the attribute to
* manually resize the webview guest contents.
*/
normal
?:
Normal
;
normal
?:
Size
;
/**
* Minimum size of the page. This can be used in combination with the attribute to
* manually resize the webview guest contents.
*/
min
?:
Size
;
/**
* Maximium size of the page. This can be used in combination with the attribute to
* manually resize the webview guest contents.
*/
max
?:
Size
;
}
interface
SourcesOptions
{
...
...
@@ -8522,11 +8552,6 @@ declare namespace Electron {
canRotate
:
boolean
;
}
interface
Normal
{
width
:
number
;
height
:
number
;
}
interface
Options
{
}
...
...
src/typings/node.d.ts
浏览文件 @
a05419de
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录