Skip to content

Commit bdfb4d0

Browse files
authored
🤖 Merge PR DefinitelyTyped#75081 frida-gum: Add size to export details by @oleavr
1 parent c57786e commit bdfb4d0

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

types/frida-gum/frida-gum-tests.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,3 +487,8 @@ const sampler = new BusyCycleSampler();
487487
for (const e of Process.getModuleByName("libc.so").enumerateExports().filter(e => e.type === "function")) {
488488
profiler.instrument(e.address, sampler);
489489
}
490+
491+
for (const e of Process.getModuleByName("libc.so").enumerateExports()) {
492+
// $ExpectType number | undefined
493+
e.size;
494+
}

types/frida-gum/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,6 +1177,11 @@ interface ModuleExportDetails {
11771177
* Absolute address.
11781178
*/
11791179
address: NativePointer;
1180+
1181+
/**
1182+
* Size in bytes, if available.
1183+
*/
1184+
size?: number | undefined;
11801185
}
11811186

11821187
interface ModuleSymbolDetails {

types/frida-gum/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/frida-gum",
4-
"version": "19.4.9999",
4+
"version": "19.5.9999",
55
"nonNpm": true,
66
"nonNpmDescription": "frida-gum",
77
"projects": [

0 commit comments

Comments
 (0)