Files
powerpoint-toolbox/node_modules/eslint-plugin-office-addins/lib/utils/utils.d.ts
T
2025-03-07 19:22:02 +01:00

18 lines
979 B
TypeScript

import { TSESTree } from "@typescript-eslint/utils";
import { Reference, Scope } from "@typescript-eslint/scope-manager";
export declare function findTopMemberExpression(node: TSESTree.MemberExpression): TSESTree.MemberExpression;
export declare function findCallExpression(node: TSESTree.MemberExpression): TSESTree.CallExpression | undefined;
export type OfficeApiReference = {
/**
* Get: An OfficeJs object, which is created when calling a `get` type function
* Load: A reference to `object.load()` type call
* Method: The reference is calling a method. Ex: `object.methodCall()`
* Read: The reference value is being read and it is not a method
* Sync: A call to `context.sync()`
*/
operation: "Get" | "Load" | "Method" | "Read" | "Sync";
reference: Reference;
};
export declare function findOfficeApiReferences(scope: Scope): OfficeApiReference[];
export declare function findPropertiesRead(node: TSESTree.Node | undefined): string;