@types/chrome 0.0.228 → 0.0.230
Sign up to get free protection for your applications and to get access to all the features.
- chrome/README.md +1 -1
- chrome/index.d.ts +65 -1
- chrome/package.json +2 -2
chrome/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Chrome extension development (http://
|
|
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: Wed, 12 Apr 2023 06:03:15 GMT
|
12
12
|
* Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
|
13
13
|
* Global values: `chrome`
|
14
14
|
|
chrome/index.d.ts
CHANGED
@@ -4839,6 +4839,11 @@ declare namespace chrome.input.ime {
|
|
4839
4839
|
capsLock?: boolean | undefined;
|
4840
4840
|
}
|
4841
4841
|
|
4842
|
+
/**
|
4843
|
+
* The auto-capitalize type of the text field.
|
4844
|
+
* @since Chrome 69.
|
4845
|
+
*/
|
4846
|
+
export type AutoCapitalizeType = 'characters' | 'words' | 'sentences';
|
4842
4847
|
/** Describes an input Context */
|
4843
4848
|
export interface InputContext {
|
4844
4849
|
/** This is used to specify targets of text field operations. This ID becomes invalid as soon as onBlur is called. */
|
@@ -4860,6 +4865,16 @@ declare namespace chrome.input.ime {
|
|
4860
4865
|
* @since Chrome 40.
|
4861
4866
|
*/
|
4862
4867
|
spellCheck: boolean;
|
4868
|
+
/**
|
4869
|
+
* The auto-capitalize type of the text field.
|
4870
|
+
* @since Chrome 69.
|
4871
|
+
*/
|
4872
|
+
autoCaptialize: AutoCapitalizeType;
|
4873
|
+
/**
|
4874
|
+
* Whether text entered into the text field should be used to improve typing suggestions for the user.
|
4875
|
+
* @since Chrome 68.
|
4876
|
+
*/
|
4877
|
+
shouldDoLearning: boolean;
|
4863
4878
|
}
|
4864
4879
|
|
4865
4880
|
/**
|
@@ -5015,6 +5030,18 @@ declare namespace chrome.input.ime {
|
|
5015
5030
|
* @since Chrome 28.
|
5016
5031
|
*/
|
5017
5032
|
windowPosition?: string | undefined;
|
5033
|
+
/**
|
5034
|
+
* Optional.
|
5035
|
+
* The index of the current chosen candidate out of total candidates.
|
5036
|
+
* @since Chrome 84.
|
5037
|
+
*/
|
5038
|
+
currentCandidateIndex?: number | undefined;
|
5039
|
+
/**
|
5040
|
+
* Optional.
|
5041
|
+
* The total number of candidates for the candidate window.
|
5042
|
+
* @since Chrome 84.
|
5043
|
+
*/
|
5044
|
+
totalCandidates?: number | undefined;
|
5018
5045
|
}
|
5019
5046
|
|
5020
5047
|
export interface CandidateWindowParameter {
|
@@ -7516,6 +7543,7 @@ declare namespace chrome.scripting {
|
|
7516
7543
|
interface RegisteredContentScript {
|
7517
7544
|
id: string;
|
7518
7545
|
allFrames?: boolean;
|
7546
|
+
matchOriginAsFallback?: boolean;
|
7519
7547
|
css?: string[];
|
7520
7548
|
excludeMatches?: string[];
|
7521
7549
|
js?: string[];
|
@@ -7633,6 +7661,19 @@ declare namespace chrome.scripting {
|
|
7633
7661
|
*/
|
7634
7662
|
export function getRegisteredContentScripts(callback: (scripts: RegisteredContentScript[]) => void): void;
|
7635
7663
|
export function getRegisteredContentScripts(filter: ContentScriptFilter, callback: (scripts: RegisteredContentScript[]) => void): void;
|
7664
|
+
|
7665
|
+
/**
|
7666
|
+
* Updates one or more content scripts.
|
7667
|
+
* @param scripts
|
7668
|
+
*/
|
7669
|
+
export function updateContentScripts(scripts: RegisteredContentScript[]): Promise<void>;
|
7670
|
+
|
7671
|
+
/**
|
7672
|
+
* Updates one or more content scripts.
|
7673
|
+
* @param scripts
|
7674
|
+
* @param callback
|
7675
|
+
*/
|
7676
|
+
export function updateContentScripts(scripts: RegisteredContentScript[], callback: () => void): void;
|
7636
7677
|
}
|
7637
7678
|
|
7638
7679
|
////////////////////
|
@@ -7705,6 +7746,11 @@ declare namespace chrome.sessions {
|
|
7705
7746
|
/** The maximum number of sessions.Session that will be included in a requested list. */
|
7706
7747
|
export var MAX_SESSION_RESULTS: number;
|
7707
7748
|
|
7749
|
+
/**
|
7750
|
+
* Gets the list of recently closed tabs and/or windows.
|
7751
|
+
* @return The `getRecentlyClosed` method provides its result via callback or returned as a `Promise` (MV3 only).
|
7752
|
+
*/
|
7753
|
+
export function getRecentlyClosed(filter?: Filter): Promise<Session[]>;
|
7708
7754
|
/**
|
7709
7755
|
* Gets the list of recently closed tabs and/or windows.
|
7710
7756
|
* @param callback
|
@@ -7717,6 +7763,11 @@ declare namespace chrome.sessions {
|
|
7717
7763
|
* Parameter sessions: The list of closed entries in reverse order that they were closed (the most recently closed tab or window will be at index 0). The entries may contain either tabs or windows.
|
7718
7764
|
*/
|
7719
7765
|
export function getRecentlyClosed(callback: (sessions: Session[]) => void): void;
|
7766
|
+
/**
|
7767
|
+
* Retrieves all devices with synced sessions.
|
7768
|
+
* @return The `getDevices` method provides its result via callback or returned as a `Promise` (MV3 only).
|
7769
|
+
*/
|
7770
|
+
export function getDevices(filter?: Filter): Promise<Device[]>;
|
7720
7771
|
/**
|
7721
7772
|
* Retrieves all devices with synced sessions.
|
7722
7773
|
* @param callback
|
@@ -7729,6 +7780,13 @@ declare namespace chrome.sessions {
|
|
7729
7780
|
* Parameter devices: The list of sessions.Device objects for each synced session, sorted in order from device with most recently modified session to device with least recently modified session. tabs.Tab objects are sorted by recency in the windows.Window of the sessions.Session objects.
|
7730
7781
|
*/
|
7731
7782
|
export function getDevices(callback: (devices: Device[]) => void): void;
|
7783
|
+
/**
|
7784
|
+
* Reopens a windows.Window or tabs.Tab.
|
7785
|
+
* @param sessionId Optional.
|
7786
|
+
* The windows.Window.sessionId, or tabs.Tab.sessionId to restore. If this parameter is not specified, the most recently closed session is restored.
|
7787
|
+
* @return The `restore` method provides its result via callback or returned as a `Promise` (MV3 only).
|
7788
|
+
*/
|
7789
|
+
export function restore(sessionId?: string): Promise<Session>;
|
7732
7790
|
/**
|
7733
7791
|
* Reopens a windows.Window or tabs.Tab, with an optional callback to run when the entry has been restored.
|
7734
7792
|
* @param sessionId Optional.
|
@@ -7736,7 +7794,13 @@ declare namespace chrome.sessions {
|
|
7736
7794
|
* @param callback Optional.
|
7737
7795
|
* Parameter restoredSession: A sessions.Session containing the restored windows.Window or tabs.Tab object.
|
7738
7796
|
*/
|
7739
|
-
export function restore(sessionId
|
7797
|
+
export function restore(sessionId: string, callback: (restoredSession: Session) => void): void;
|
7798
|
+
/**
|
7799
|
+
* Reopens a windows.Window or tabs.Tab, with an optional callback to run when the entry has been restored.
|
7800
|
+
* @param callback Optional.
|
7801
|
+
* Parameter restoredSession: A sessions.Session containing the restored windows.Window or tabs.Tab object.
|
7802
|
+
*/
|
7803
|
+
export function restore(callback: (restoredSession: Session) => void): void;
|
7740
7804
|
|
7741
7805
|
/** Fired when recently closed tabs and/or windows are changed. This event does not monitor synced sessions changes. */
|
7742
7806
|
export var onChanged: SessionChangedEvent;
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.230",
|
4
4
|
"description": "TypeScript definitions for Chrome extension development",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
6
6
|
"license": "MIT",
|
@@ -93,6 +93,6 @@
|
|
93
93
|
"@types/filesystem": "*",
|
94
94
|
"@types/har-format": "*"
|
95
95
|
},
|
96
|
-
"typesPublisherContentHash": "
|
96
|
+
"typesPublisherContentHash": "fecca31e026d8c7c42e90050d56de4ca16e920f48177b16dab8e29315ce8a950",
|
97
97
|
"typeScriptVersion": "4.3"
|
98
98
|
}
|