diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-08-20 11:16:52 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-08-20 11:16:52 +0530 |
| commit | 2b94b07fdc8f1a82f507b99000add9b7dca2c3d8 (patch) | |
| tree | c96e3c0992cc24145c9b42cbaf8ea8f607c6b73c /src/index.ts | |
| parent | 3ff7d709998fe33f82e6da50d7b3327b076a1039 (diff) | |
| download | css-everything-2b94b07fdc8f1a82f507b99000add9b7dca2c3d8.tar.gz css-everything-2b94b07fdc8f1a82f507b99000add9b7dca2c3d8.zip | |
refactor: adds evalvalue type instead of string
Diffstat (limited to 'src/index.ts')
| -rw-r--r-- | src/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.ts b/src/index.ts index a448924..52f3a1b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import { EvalActions, evalExpr } from './eval' +import { EvalActions, evalExpr, evalExprAsString } from './eval' import { extractDeclaration, DeclarationEval, @@ -274,7 +274,7 @@ export const manageElement = async ( try { const exprs = parse(text) $element.textContent = - (exprs[0] ? await evalExpr(exprs[0], actions) : text) ?? text + (exprs[0] ? await evalExprAsString(exprs[0], actions) : text) ?? text } catch (e) { $element.textContent = text } |
