Skip to content

Commit

Permalink
ACTION_METHODS
Browse files Browse the repository at this point in the history
  • Loading branch information
flyerhzm committed Feb 12, 2025
1 parent 21bdd9f commit b99faea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const CONDITION_METHODS =
"ifExistNode unlessExistNode ifOnlyExistNode ifAllNodes";
// delete is a reserved word, we define another expression in GLOBAL_DSL_QUERY
const ACTION_METHODS =
"group append prepend insert insertAfter insertBefore remove replace replaceWith noop";
const ALL_METHODS = `configure description ifNode ifNpm ${REWRITER_METHODS} ${SCOPE_METHODS} ${CONDITION_METHODS} ${ACTION_METHODS} callHelper wrapWithQuotes appendSemicolon addLeadingSpaces indent`;
"group append prepend indent insert insertAfter insertBefore remove replace replaceWith noop";
const ALL_METHODS = `configure description ifNode ifNpm ${REWRITER_METHODS} ${SCOPE_METHODS} ${CONDITION_METHODS} ${ACTION_METHODS} callHelper wrapWithQuotes appendSemicolon addLeadingSpaces indentCode`;

export const arrayBody = <T>(
node: T,
Expand Down Expand Up @@ -365,7 +365,7 @@ export const evalHelperSync = (helperName: string): Helper => {
* @param {string} helperName - helper name, it can be a http url, file path or helper name.
* @returns {Promise<Helper>} a Helper object
*/
export const evalHelper = async <T>(helperName: string): Promise<Helper> => {
export const evalHelper = async (helperName: string): Promise<Helper> => {
const helperContent = await loadSnippet(helperName);
return evaluateContent(helperContent, 'Helper');
};
Expand Down

0 comments on commit b99faea

Please sign in to comment.