Skip to content

Commit 35c87aa

Browse files
committed
+getHighEntropyValues
1 parent bccbbb2 commit 35c87aa

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,13 @@ declare interface VMScriptGMInfoObject {
7171
platform: VMScriptGMInfoPlatform;
7272
/**
7373
* A copy of navigator.userAgentData from the content script of the extension.
74+
* Not present in browsers that don't implement this API.
7475
* @since VM2.20.2 */
7576
userAgentData?: {
7677
brands: {brand: string, version: string}[],
7778
mobile: boolean,
7879
platform: string,
80+
getHighEntropyValues(hints: string[]): Promise<UADataValues>,
7981
};
8082
}
8183

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"repository": "[email protected]:violentmonkey/types.git",
2424
"devDependencies": {
2525
"typedoc": "^0.25.6",
26-
"typescript": "^5.3.3"
26+
"typescript": "^5.3.3",
27+
"user-agent-data-types": "^0.4.2"
2728
}
2829
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"allowSyntheticDefaultImports": true
88
},
99
"include": [
10+
"./node_modules/user-agent-data-types/index.d.ts",
1011
"index.d.ts"
1112
]
1213
}

0 commit comments

Comments
 (0)