@types/chrome 0.0.332 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- chrome/README.md +1 -1
- chrome/index.d.ts +0 -444
- chrome/package.json +2 -2
chrome/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (https://developer.chrome.com/
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Fri, 11 Jul 2025 18:02:44 GMT
|
12
12
|
* Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
|
13
13
|
|
14
14
|
# Credits
|
chrome/index.d.ts
CHANGED
@@ -645,40 +645,6 @@ declare namespace chrome {
|
|
645
645
|
export const onMuteChanged: chrome.events.Event<(event: MuteChangedEvent) => void>;
|
646
646
|
}
|
647
647
|
|
648
|
-
////////////////////
|
649
|
-
// Browser
|
650
|
-
////////////////////
|
651
|
-
/**
|
652
|
-
* Use the chrome.browser API to interact with the Chrome browser associated with
|
653
|
-
* the current application and Chrome profile.
|
654
|
-
* @deprecated Part of the deprecated Chrome Apps platform
|
655
|
-
*/
|
656
|
-
export namespace browser {
|
657
|
-
export interface Options {
|
658
|
-
/** The URL to navigate to when the new tab is initially opened. */
|
659
|
-
url: string;
|
660
|
-
}
|
661
|
-
|
662
|
-
/**
|
663
|
-
* Opens a new tab in a browser window associated with the current application
|
664
|
-
* and Chrome profile. If no browser window for the Chrome profile is opened,
|
665
|
-
* a new one is opened prior to creating the new tab.
|
666
|
-
* @param options Configures how the tab should be opened.
|
667
|
-
* @param callback Called when the tab was successfully
|
668
|
-
* created, or failed to be created. If failed, runtime.lastError will be set.
|
669
|
-
*/
|
670
|
-
export function openTab(options: Options, callback: () => void): void;
|
671
|
-
|
672
|
-
/**
|
673
|
-
* Opens a new tab in a browser window associated with the current application
|
674
|
-
* and Chrome profile. If no browser window for the Chrome profile is opened,
|
675
|
-
* a new one is opened prior to creating the new tab.
|
676
|
-
* @since Chrome 42
|
677
|
-
* @param options Configures how the tab should be opened.
|
678
|
-
*/
|
679
|
-
export function openTab(options: Options): void;
|
680
|
-
}
|
681
|
-
|
682
648
|
////////////////////
|
683
649
|
// Bookmarks
|
684
650
|
////////////////////
|
@@ -7178,55 +7144,6 @@ declare namespace chrome {
|
|
7178
7144
|
export var onEnabled: ManagementEnabledEvent;
|
7179
7145
|
}
|
7180
7146
|
|
7181
|
-
////////////////////
|
7182
|
-
// Networking
|
7183
|
-
////////////////////
|
7184
|
-
/**
|
7185
|
-
* Use the networking.config API to authenticate to captive portals.
|
7186
|
-
* Permissions: "networking.config"
|
7187
|
-
* Important: This API works only on Chrome OS.
|
7188
|
-
* @since Chrome 43
|
7189
|
-
*/
|
7190
|
-
export namespace networking.config {
|
7191
|
-
export interface NetworkInfo {
|
7192
|
-
/** Currently only WiFi supported. */
|
7193
|
-
Type: string;
|
7194
|
-
/** Optional. A unique identifier of the network. */
|
7195
|
-
GUID?: string | undefined;
|
7196
|
-
/** Optional. A hex-encoded byte sequence. */
|
7197
|
-
HexSSID?: string | undefined;
|
7198
|
-
/** Optional. The decoded SSID of the network (default encoding is UTF-8). To filter for non-UTF-8 SSIDs, use HexSSID instead. */
|
7199
|
-
SSID?: string | undefined;
|
7200
|
-
/** Optional. The basic service set identification (BSSID) uniquely identifying the basic service set. BSSID is represented as a human readable, hex-encoded string with bytes separated by colons, e.g. 45:67:89:ab:cd:ef. */
|
7201
|
-
BSSID?: string | undefined;
|
7202
|
-
/** Optional. Identifier indicating the security type of the network. Valid values are None, WEP-PSK, WPA-PSK and WPA-EAP. */
|
7203
|
-
Security?: string | undefined;
|
7204
|
-
}
|
7205
|
-
|
7206
|
-
export interface CaptivePorttalDetectedEvent extends chrome.events.Event<(networkInfo: NetworkInfo) => void> {}
|
7207
|
-
|
7208
|
-
/**
|
7209
|
-
* Allows an extension to define network filters for the networks it can handle. A call to this function will remove all filters previously installed by the extension before setting the new list.
|
7210
|
-
* @param networks Network filters to set. Every NetworkInfo must either have the SSID or HexSSID set. Other fields will be ignored.
|
7211
|
-
* @param callback Called back when this operation is finished.
|
7212
|
-
*/
|
7213
|
-
export function setNetworkFilter(networks: NetworkInfo[], callback: () => void): void;
|
7214
|
-
/**
|
7215
|
-
* Called by the extension to notify the network config API that it finished a captive portal authentication attempt and hand over the result of the attempt. This function must only be called with the GUID of the latest onCaptivePortalDetected event.
|
7216
|
-
* @param GUID Unique network identifier obtained from onCaptivePortalDetected.
|
7217
|
-
* @param result The result of the authentication attempt.
|
7218
|
-
* unhandled: The extension does not handle this network or captive portal (e.g. server end-point not found or not compatible).
|
7219
|
-
* succeeded: The extension handled this network and authenticated successfully.
|
7220
|
-
* rejected: The extension handled this network, tried to authenticate, however was rejected by the server.
|
7221
|
-
* failed: The extension handled this network, tried to authenticate, however failed due to an unspecified error.
|
7222
|
-
* @param callback Called back when this operation is finished.
|
7223
|
-
*/
|
7224
|
-
export function finishAuthentication(GUID: string, result: string, callback?: () => void): void;
|
7225
|
-
|
7226
|
-
/** This event fires everytime a captive portal is detected on a network matching any of the currently registered network filters and the user consents to use the extension for authentication. Network filters may be set using the setNetworkFilter. Upon receiving this event the extension should start its authentication attempt with the captive portal. When the extension finishes its attempt, it must call finishAuthentication with the GUID received with this event and the appropriate authentication result. */
|
7227
|
-
export var onCaptivePortalDetected: CaptivePorttalDetectedEvent;
|
7228
|
-
}
|
7229
|
-
|
7230
7147
|
////////////////////
|
7231
7148
|
// Notifications
|
7232
7149
|
////////////////////
|
@@ -8664,274 +8581,6 @@ declare namespace chrome {
|
|
8664
8581
|
export function query(options: QueryInfo): Promise<void>;
|
8665
8582
|
}
|
8666
8583
|
|
8667
|
-
////////////////////
|
8668
|
-
// Serial
|
8669
|
-
////////////////////
|
8670
|
-
/**
|
8671
|
-
* Use the <code>chrome.serial</code> API to read from and write to a device connected to a serial port.
|
8672
|
-
* Permissions: "enterprise.serial"
|
8673
|
-
* @since Chrome 29
|
8674
|
-
* Important: This API works only on Chrome OS.
|
8675
|
-
* @deprecated Part of the deprecated Chrome Apps platform
|
8676
|
-
*/
|
8677
|
-
export namespace serial {
|
8678
|
-
export const DataBits: {
|
8679
|
-
SEVEN: "seven";
|
8680
|
-
EIGHT: "eight";
|
8681
|
-
};
|
8682
|
-
export const ParityBit: {
|
8683
|
-
NO: "no";
|
8684
|
-
ODD: "odd";
|
8685
|
-
EVEN: "even";
|
8686
|
-
};
|
8687
|
-
export const StopBits: {
|
8688
|
-
ONE: "one";
|
8689
|
-
TWO: "two";
|
8690
|
-
};
|
8691
|
-
|
8692
|
-
export interface DeviceInfo {
|
8693
|
-
/** The device's system path. This should be passed as the path argument to chrome.serial.connect in order to connect to this device. */
|
8694
|
-
path: string;
|
8695
|
-
/** Optional. A PCI or USB vendor ID if one can be determined for the underlying device. */
|
8696
|
-
vendorId?: number | undefined;
|
8697
|
-
/** Optional. A USB product ID if one can be determined for the underlying device. */
|
8698
|
-
productId?: number | undefined;
|
8699
|
-
/** Optional. A human-readable display name for the underlying device if one can be queried from the host driver. */
|
8700
|
-
displayName?: number | undefined;
|
8701
|
-
}
|
8702
|
-
|
8703
|
-
export interface ConnectionInfo {
|
8704
|
-
/** The id of the serial port connection. */
|
8705
|
-
connectionId?: number | undefined;
|
8706
|
-
/** Flag indicating whether the connection is blocked from firing onReceive events. */
|
8707
|
-
paused: boolean;
|
8708
|
-
/** See ConnectionOptions.persistent */
|
8709
|
-
persistent: boolean;
|
8710
|
-
/** See ConnectionOptions.name */
|
8711
|
-
name: string;
|
8712
|
-
/** See ConnectionOptions.bufferSize */
|
8713
|
-
bufferSize: number;
|
8714
|
-
/** See ConnectionOptions.receiveTimeout */
|
8715
|
-
receiveTimeout?: number | undefined;
|
8716
|
-
/** See ConnectionOptions.sendTimeout */
|
8717
|
-
sendTimeout?: number | undefined;
|
8718
|
-
/** Optional. See ConnectionOptions.bitrate.
|
8719
|
-
* This field may be omitted or inaccurate if a non-standard bitrate is in use, or if an error occurred while querying the underlying device. */
|
8720
|
-
bitrate?: number | undefined;
|
8721
|
-
/** Optional. See ConnectionOptions.dataBits. This field may be omitted if an error occurred while querying the underlying device. */
|
8722
|
-
dataBits?: typeof DataBits[keyof typeof DataBits] | undefined;
|
8723
|
-
/** Optional. See ConnectionOptions.parityBit. This field may be omitted if an error occurred while querying the underlying device. */
|
8724
|
-
parityBit?: typeof ParityBit[keyof typeof ParityBit] | undefined;
|
8725
|
-
/** Optional. See ConnectionOptions.stopBits. This field may be omitted if an error occurred while querying the underlying device. */
|
8726
|
-
stopBits?: typeof StopBits[keyof typeof StopBits] | undefined;
|
8727
|
-
/** Optional. Flag indicating whether or not to enable RTS/CTS hardware flow control. Defaults to false. */
|
8728
|
-
ctsFlowControl?: boolean | undefined;
|
8729
|
-
}
|
8730
|
-
|
8731
|
-
export interface ConnectionOptions {
|
8732
|
-
/** Optional. Flag indicating whether or not the connection should be left open when the application is suspended (see Manage App Lifecycle: https://developer.chrome.com/apps/app_lifecycle).
|
8733
|
-
* The default value is "false." When the application is loaded, any serial connections previously opened with persistent=true can be fetched with getConnections. */
|
8734
|
-
persistent?: boolean | undefined;
|
8735
|
-
/** Optional. An application-defined string to associate with the connection. */
|
8736
|
-
name?: string | undefined;
|
8737
|
-
/** Optional. The size of the buffer used to receive data. The default value is 4096. */
|
8738
|
-
bufferSize?: number | undefined;
|
8739
|
-
/** Optional. The requested bitrate of the connection to be opened.
|
8740
|
-
* For compatibility with the widest range of hardware, this number should match one of commonly-available bitrates,
|
8741
|
-
* such as 110, 300, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200.
|
8742
|
-
* There is no guarantee, of course, that the device connected to the serial port will support the requested bitrate, even if the port itself supports that bitrate.
|
8743
|
-
* 9600 will be passed by default. */
|
8744
|
-
bitrate?: number | undefined;
|
8745
|
-
/** Optional. "eight" will be passed by default. */
|
8746
|
-
dataBits?: typeof DataBits[keyof typeof DataBits] | undefined;
|
8747
|
-
/** Optional. "no" will be passed by default. */
|
8748
|
-
parityBit?: typeof ParityBit[keyof typeof ParityBit] | undefined;
|
8749
|
-
/** Optional. "one" will be passed by default. */
|
8750
|
-
stopBits?: typeof StopBits[keyof typeof StopBits] | undefined;
|
8751
|
-
/** Optional. Flag indicating whether or not to enable RTS/CTS hardware flow control. Defaults to false. */
|
8752
|
-
ctsFlowControl?: boolean | undefined;
|
8753
|
-
/** Optional. The maximum amount of time (in milliseconds) to wait for new data before raising an onReceiveError event with a "timeout" error.
|
8754
|
-
* If zero, receive timeout errors will not be raised for the connection.
|
8755
|
-
* Defaults to 0. */
|
8756
|
-
receiveTimeout?: number | undefined;
|
8757
|
-
/** Optional. The maximum amount of time (in milliseconds) to wait for a send operation to complete before calling the callback with a "timeout" error.
|
8758
|
-
* If zero, send timeout errors will not be triggered.
|
8759
|
-
* Defaults to 0. */
|
8760
|
-
sendTimeout?: number | undefined;
|
8761
|
-
}
|
8762
|
-
|
8763
|
-
/**
|
8764
|
-
* @since Chrome 33
|
8765
|
-
* @description Returns information about available serial devices on the system. The list is regenerated each time this method is called.
|
8766
|
-
* @param callback Called with the list of DeviceInfo objects.
|
8767
|
-
*/
|
8768
|
-
export function getDevices(callback: (ports: DeviceInfo[]) => void): void;
|
8769
|
-
|
8770
|
-
/**
|
8771
|
-
* @since Chrome 33
|
8772
|
-
* @description Connects to a given serial port.
|
8773
|
-
* @param path The system path of the serial port to open.
|
8774
|
-
* @param options Port configuration options.
|
8775
|
-
* @param callback Called when the connection has been opened.
|
8776
|
-
*/
|
8777
|
-
export function connect(
|
8778
|
-
path: string,
|
8779
|
-
options: ConnectionOptions,
|
8780
|
-
callback: (connectionInfo: ConnectionInfo) => void,
|
8781
|
-
): void;
|
8782
|
-
|
8783
|
-
/**
|
8784
|
-
* @since Chrome 33
|
8785
|
-
* @description Update the option settings on an open serial port connection.
|
8786
|
-
* @param connectionId The id of the opened connection.
|
8787
|
-
* @param options Port configuration options.
|
8788
|
-
* @param callback Called when the configuration has completed.
|
8789
|
-
*/
|
8790
|
-
export function update(
|
8791
|
-
connectionId: number,
|
8792
|
-
options: ConnectionOptions,
|
8793
|
-
callback: (result: boolean) => void,
|
8794
|
-
): void;
|
8795
|
-
|
8796
|
-
/**
|
8797
|
-
* @since Chrome 33
|
8798
|
-
* @description Disconnects from a serial port.
|
8799
|
-
* @param connectionId The id of the opened connection.
|
8800
|
-
* @param callback Called when the connection has been closed.
|
8801
|
-
*/
|
8802
|
-
export function disconnect(connectionId: number, callback: (result: boolean) => void): void;
|
8803
|
-
|
8804
|
-
/**
|
8805
|
-
* @since Chrome 33
|
8806
|
-
* @description Pauses or unpauses an open connection.
|
8807
|
-
* @param connectionId The id of the opened connection.
|
8808
|
-
* @param paused Flag to indicate whether to pause or unpause.
|
8809
|
-
* @param callback Called when the connection has been successfully paused or unpaused.
|
8810
|
-
*/
|
8811
|
-
export function setPaused(connectionId: number, paused: boolean, callback: () => void): void;
|
8812
|
-
|
8813
|
-
/**
|
8814
|
-
* @since Chrome 33
|
8815
|
-
* @description Retrieves the state of a given connection.
|
8816
|
-
* @param callback Called with connection state information when available.
|
8817
|
-
*/
|
8818
|
-
export function getInfo(callback: (connectionInfos: ConnectionInfo[]) => void): void;
|
8819
|
-
|
8820
|
-
/**
|
8821
|
-
* @since Chrome 33
|
8822
|
-
* @description Retrieves the list of currently opened serial port connections owned by the application.
|
8823
|
-
* @param callback Called with the list of connections when available.
|
8824
|
-
*/
|
8825
|
-
export function getConnections(callback: (connectionInfos: ConnectionInfo[]) => void): void;
|
8826
|
-
|
8827
|
-
/**
|
8828
|
-
* @since Chrome 33
|
8829
|
-
* @description Writes data to the given connection.
|
8830
|
-
* @param connectionId The id of the connection.
|
8831
|
-
* @param data The data to send.
|
8832
|
-
* @param callback Called when the operation has completed.
|
8833
|
-
*/
|
8834
|
-
export function send(connectionId: number, data: ArrayBuffer, callback: (sendInfo: object) => void): void;
|
8835
|
-
|
8836
|
-
/**
|
8837
|
-
* @description Flushes all bytes in the given connection's input and output buffers.
|
8838
|
-
* @param connectionId The id of the connection.
|
8839
|
-
* @param callback
|
8840
|
-
*/
|
8841
|
-
export function flush(connectionId: number, callback: (result: boolean) => void): void;
|
8842
|
-
|
8843
|
-
/**
|
8844
|
-
* @description Retrieves the state of control signals on a given connection.
|
8845
|
-
* @param connectionId The id of the connection.
|
8846
|
-
* @param callback Called when the control signals are available.
|
8847
|
-
*/
|
8848
|
-
export function getControlSignals(connectionId: number, callback: (signals: object) => void): void;
|
8849
|
-
|
8850
|
-
/**
|
8851
|
-
* @description Sets the state of control signals on a given connection.
|
8852
|
-
* @param connectionId The id of the connection.
|
8853
|
-
* @param signals The set of signal changes to send to the device:
|
8854
|
-
* boolean: (optional) dtr - DTR (Data Terminal Ready).
|
8855
|
-
* boolean: (optional) rts - RTS (Request To Send).
|
8856
|
-
* @param callback Called once the control signals have been set.
|
8857
|
-
*/
|
8858
|
-
export function setControlSignals(
|
8859
|
-
connectionId: number,
|
8860
|
-
signals: object,
|
8861
|
-
callback: (result: boolean) => void,
|
8862
|
-
): void;
|
8863
|
-
|
8864
|
-
/**
|
8865
|
-
* @since Chrome 45
|
8866
|
-
* @description Suspends character transmission on a given connection and places the transmission line in a break state until the clearBreak is called.
|
8867
|
-
* @param connectionId The id of the connection.
|
8868
|
-
* @param callback
|
8869
|
-
*/
|
8870
|
-
export function setBreak(connectionId: number, callback: (result: boolean) => void): void;
|
8871
|
-
|
8872
|
-
/**
|
8873
|
-
* @since Chrome 45
|
8874
|
-
* @description Restore character transmission on a given connection and place the transmission line in a nonbreak state.
|
8875
|
-
* @param connectionId The id of the connection.
|
8876
|
-
* @param callback
|
8877
|
-
*/
|
8878
|
-
export function clearBreak(connectionId: number, callback: (result: boolean) => void): void;
|
8879
|
-
}
|
8880
|
-
|
8881
|
-
export namespace serial.onReceive {
|
8882
|
-
export interface OnReceiveInfo {
|
8883
|
-
/** The connection identifier. */
|
8884
|
-
connectionId: number;
|
8885
|
-
/** The data received. */
|
8886
|
-
data: ArrayBuffer;
|
8887
|
-
}
|
8888
|
-
|
8889
|
-
/**
|
8890
|
-
* @since Chrome 33
|
8891
|
-
* @description Event raised when data has been read from the connection.
|
8892
|
-
* @param callback
|
8893
|
-
*/
|
8894
|
-
export function addListener(callback: (info: OnReceiveInfo) => void): void;
|
8895
|
-
}
|
8896
|
-
|
8897
|
-
export namespace serial.onReceiveError {
|
8898
|
-
export const OnReceiveErrorEnum: {
|
8899
|
-
/* The connection was disconnected. */
|
8900
|
-
disconnected: "disconnected";
|
8901
|
-
/* No data has been received for receiveTimeout milliseconds. */
|
8902
|
-
timeout: "timeout";
|
8903
|
-
/* The device was most likely disconnected from the host. */
|
8904
|
-
device_lost: "device_lost";
|
8905
|
-
/* The device detected a break condition. */
|
8906
|
-
break: "break";
|
8907
|
-
/* The device detected a framing error. */
|
8908
|
-
frame_error: "frame_error";
|
8909
|
-
/* A character-buffer overrun has occurred. The next character is lost. */
|
8910
|
-
overrun: "overrun";
|
8911
|
-
/* An input buffer overflow has occurred. There is either no room in the input buffer, or a character was received after the end-of-file (EOF) character. */
|
8912
|
-
buffer_overflow: "buffer_overflow";
|
8913
|
-
/* The device detected a parity error. */
|
8914
|
-
parity_error: "parity_error";
|
8915
|
-
/* A system error occurred and the connection may be unrecoverable. */
|
8916
|
-
system_error: "system_error";
|
8917
|
-
};
|
8918
|
-
|
8919
|
-
export interface OnReceiveErrorInfo {
|
8920
|
-
/** The connection identifier. */
|
8921
|
-
connectionId: number;
|
8922
|
-
/** The data received. */
|
8923
|
-
error: ArrayBuffer;
|
8924
|
-
}
|
8925
|
-
|
8926
|
-
/**
|
8927
|
-
* @since Chrome 33
|
8928
|
-
* @description Event raised when an error occurred while the runtime was waiting for data on the serial port.
|
8929
|
-
* Once this event is raised, the connection may be set to paused. A "timeout" error does not pause the connection.
|
8930
|
-
* @param callback
|
8931
|
-
*/
|
8932
|
-
export function addListener(callback: (info: OnReceiveErrorInfo) => void): void;
|
8933
|
-
}
|
8934
|
-
|
8935
8584
|
////////////////////
|
8936
8585
|
// Runtime
|
8937
8586
|
////////////////////
|
@@ -10379,99 +10028,6 @@ declare namespace chrome {
|
|
10379
10028
|
export var onChanged: StorageChangedEvent;
|
10380
10029
|
}
|
10381
10030
|
|
10382
|
-
////////////////////
|
10383
|
-
// Socket
|
10384
|
-
////////////////////
|
10385
|
-
/**
|
10386
|
-
* @deprecated Part of the deprecated Chrome Apps platform
|
10387
|
-
*/
|
10388
|
-
export namespace socket {
|
10389
|
-
export interface CreateInfo {
|
10390
|
-
socketId: number;
|
10391
|
-
}
|
10392
|
-
|
10393
|
-
export interface AcceptInfo {
|
10394
|
-
resultCode: number;
|
10395
|
-
socketId?: number | undefined;
|
10396
|
-
}
|
10397
|
-
|
10398
|
-
export interface ReadInfo {
|
10399
|
-
resultCode: number;
|
10400
|
-
data: ArrayBuffer;
|
10401
|
-
}
|
10402
|
-
|
10403
|
-
export interface WriteInfo {
|
10404
|
-
bytesWritten: number;
|
10405
|
-
}
|
10406
|
-
|
10407
|
-
export interface RecvFromInfo {
|
10408
|
-
resultCode: number;
|
10409
|
-
data: ArrayBuffer;
|
10410
|
-
port: number;
|
10411
|
-
address: string;
|
10412
|
-
}
|
10413
|
-
|
10414
|
-
export interface SocketInfo {
|
10415
|
-
socketType: string;
|
10416
|
-
localPort?: number | undefined;
|
10417
|
-
peerAddress?: string | undefined;
|
10418
|
-
peerPort?: number | undefined;
|
10419
|
-
localAddress?: string | undefined;
|
10420
|
-
connected: boolean;
|
10421
|
-
}
|
10422
|
-
|
10423
|
-
export interface NetworkInterface {
|
10424
|
-
name: string;
|
10425
|
-
address: string;
|
10426
|
-
}
|
10427
|
-
|
10428
|
-
export function create(
|
10429
|
-
type: string,
|
10430
|
-
options?: { [key: string]: unknown },
|
10431
|
-
callback?: (createInfo: CreateInfo) => void,
|
10432
|
-
): void;
|
10433
|
-
export function destroy(socketId: number): void;
|
10434
|
-
export function connect(
|
10435
|
-
socketId: number,
|
10436
|
-
hostname: string,
|
10437
|
-
port: number,
|
10438
|
-
callback: (result: number) => void,
|
10439
|
-
): void;
|
10440
|
-
export function bind(socketId: number, address: string, port: number, callback: (result: number) => void): void;
|
10441
|
-
export function disconnect(socketId: number): void;
|
10442
|
-
export function read(socketId: number, bufferSize?: number, callback?: (readInfo: ReadInfo) => void): void;
|
10443
|
-
export function write(socketId: number, data: ArrayBuffer, callback?: (writeInfo: WriteInfo) => void): void;
|
10444
|
-
export function recvFrom(
|
10445
|
-
socketId: number,
|
10446
|
-
bufferSize?: number,
|
10447
|
-
callback?: (recvFromInfo: RecvFromInfo) => void,
|
10448
|
-
): void;
|
10449
|
-
export function sendTo(
|
10450
|
-
socketId: number,
|
10451
|
-
data: ArrayBuffer,
|
10452
|
-
address: string,
|
10453
|
-
port: number,
|
10454
|
-
callback?: (writeInfo: WriteInfo) => void,
|
10455
|
-
): void;
|
10456
|
-
export function listen(
|
10457
|
-
socketId: number,
|
10458
|
-
address: string,
|
10459
|
-
port: number,
|
10460
|
-
backlog?: number,
|
10461
|
-
callback?: (result: number) => void,
|
10462
|
-
): void;
|
10463
|
-
export function accept(socketId: number, callback?: (acceptInfo: AcceptInfo) => void): void;
|
10464
|
-
export function setKeepAlive(
|
10465
|
-
socketId: number,
|
10466
|
-
enable: boolean,
|
10467
|
-
delay?: number,
|
10468
|
-
callback?: (result: boolean) => void,
|
10469
|
-
): void;
|
10470
|
-
export function setNoDelay(socketId: number, noDelay: boolean, callback?: (result: boolean) => void): void;
|
10471
|
-
export function getInfo(socketId: number, callback: (result: SocketInfo) => void): void;
|
10472
|
-
export function getNetworkList(callback: (result: NetworkInterface[]) => void): void;
|
10473
|
-
}
|
10474
|
-
|
10475
10031
|
////////////////////
|
10476
10032
|
// System CPU
|
10477
10033
|
////////////////////
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0
|
3
|
+
"version": "0.1.0",
|
4
4
|
"description": "TypeScript definitions for chrome",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
6
6
|
"license": "MIT",
|
@@ -94,6 +94,6 @@
|
|
94
94
|
"@types/har-format": "*"
|
95
95
|
},
|
96
96
|
"peerDependencies": {},
|
97
|
-
"typesPublisherContentHash": "
|
97
|
+
"typesPublisherContentHash": "131e5a519538e0fd73a2e764f34363c45bfa0795a8c8520f19fd445a0aeeae3d",
|
98
98
|
"typeScriptVersion": "5.1"
|
99
99
|
}
|