Split out MethodSignature from ExternalApiUsage

This commit is contained in:
Robert
2023-07-13 16:17:48 +01:00
parent 31fdc794e5
commit f927ac9f1c

View File

@@ -5,11 +5,7 @@ export type Call = {
url: ResolvableLocationValue;
};
export type ExternalApiUsage = {
/**
* Contains the name of the library containing the method declaration, e.g. `sql2o-1.6.0.jar` or `System.Runtime.dll`
*/
library: string;
export interface MethodSignature {
/**
* A unique signature that can be used to identify this external API usage.
*
@@ -25,10 +21,17 @@ export type ExternalApiUsage = {
* The method parameters, including enclosing parentheses, e.g. `(String, String)`
*/
methodParameters: string;
}
export interface ExternalApiUsage extends MethodSignature {
/**
* Contains the name of the library containing the method declaration, e.g. `sql2o-1.6.0.jar` or `System.Runtime.dll`
*/
library: string;
/**
* Is this method already supported by CodeQL standard libraries.
* If so, there is no need for the user to model it themselves.
*/
supported: boolean;
usages: Call[];
};
}