mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Sync frida-gum typings with Frida 12.7.25 (#40868)
Changelog at:
https://www.frida.re/news/2019/09/18/frida-12-7-released/
This commit is contained in:
committed by
Ron Buckton
parent
6f49a850bf
commit
3b047be851
Vendored
+18
-2
@@ -1,4 +1,4 @@
|
||||
// Type definitions for non-npm package frida-gum 14.2
|
||||
// Type definitions for non-npm package frida-gum 14.3
|
||||
// Project: https://github.com/frida/frida
|
||||
// Definitions by: Ole André Vadla Ravnås <https://github.com/oleavr>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -935,6 +935,11 @@ interface ModuleSymbolDetails {
|
||||
* Absolute address.
|
||||
*/
|
||||
address: NativePointer;
|
||||
|
||||
/**
|
||||
* Size in bytes, if available.
|
||||
*/
|
||||
size?: number;
|
||||
}
|
||||
|
||||
type ModuleImportType = "function" | "variable";
|
||||
@@ -4043,7 +4048,7 @@ declare namespace Java {
|
||||
*
|
||||
* @param className Canonical class name to get a wrapper for.
|
||||
*/
|
||||
function use(className: string): Wrapper;
|
||||
function use(className: string, options?: UseOptions): Wrapper;
|
||||
|
||||
/**
|
||||
* Opens the .dex file at `filePath`.
|
||||
@@ -4139,6 +4144,17 @@ declare namespace Java {
|
||||
onComplete: () => void;
|
||||
}
|
||||
|
||||
interface UseOptions {
|
||||
/**
|
||||
* Whether to consult the class wrapper cache – which is the default
|
||||
* behavior – or skip it and create a brand new class wrapper.
|
||||
*
|
||||
* Skipping the cache is useful when dealing with multiple class-loaders
|
||||
* and colliding class names.
|
||||
*/
|
||||
cache?: "consult" | "skip";
|
||||
}
|
||||
|
||||
interface ChooseCallbacks {
|
||||
/**
|
||||
* Called with each live instance found with a ready-to-use `instance`
|
||||
|
||||
Reference in New Issue
Block a user