From 28f9abf950f70b5585d919b91b7091965b289602 Mon Sep 17 00:00:00 2001 From: Janitha Nawarathna <64242868+s16417@users.noreply.github.com> Date: Sat, 5 Mar 2022 20:31:20 +0530 Subject: [PATCH] helper function to get something out like current text --- typical.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/typical.js b/typical.js index 458da49..b66ec6f 100644 --- a/typical.js +++ b/typical.js @@ -1,8 +1,10 @@ -export async function type(node, ...args) { +export async function type(node, helper, ...args) { for (const arg of args) { switch (typeof arg) { case 'string': await edit(node, arg); + if(typeof helper == 'function') + helper(arg); break; case 'number': await wait(arg);