Files
NapCatQQ/.pnpm-store/v3/files/46/a7f475a2016acf48e976f95ef19f3dd8fcf283e55c701989adc10b741d97b4b2868157bf38d4596a0a891b8a242184ba04268546c13b5b0a9866b5975e8aa1
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

28 lines
1.1 KiB
Plaintext

import type { TSESTree } from '@typescript-eslint/utils';
import type { RuleContext } from '@typescript-eslint/utils/ts-eslint';
/**
* Parses a syntactically possible `Promise.then()` call. Does not check the
* type of the callee.
*/
export declare function parseThenCall(node: TSESTree.CallExpression, context: RuleContext<string, unknown[]>): {
onFulfilled?: TSESTree.Expression | undefined;
onRejected?: TSESTree.Expression | undefined;
object: TSESTree.Expression;
} | undefined;
/**
* Parses a syntactically possible `Promise.catch()` call. Does not check the
* type of the callee.
*/
export declare function parseCatchCall(node: TSESTree.CallExpression, context: RuleContext<string, unknown[]>): {
onRejected?: TSESTree.Expression | undefined;
object: TSESTree.Expression;
} | undefined;
/**
* Parses a syntactically possible `Promise.finally()` call. Does not check the
* type of the callee.
*/
export declare function parseFinallyCall(node: TSESTree.CallExpression, context: RuleContext<string, unknown[]>): {
object: TSESTree.Expression;
onFinally?: TSESTree.Expression | undefined;
} | undefined;