0.0.3: Exotic Type Gymnastics #3

Merged
Astrian merged 40 commits from dev into main 2025-05-22 01:17:51 +00:00
Showing only changes of commit de02d090e8 - Show all commits

View File

@ -340,11 +340,11 @@ export default (options: ComponentOptions) => {
} }
// Update text node // Update text node
private _updateTextNode(node: Text, expr: string, template: string) { private _updateTextNode(node: Text, _expr: string, template: string) {
// Replace all expressions with the current state value // Replace all expressions with the current state value
let newContent = template let newContent = template
const replaceExpr = (match: string, expr: string) => { const replaceExpr = (_match: string, expr: string) => {
// Get the value of the expression // Get the value of the expression
const value = this._getNestedState(expr.trim()) const value = this._getNestedState(expr.trim())
return value !== undefined ? String(value) : '' return value !== undefined ? String(value) : ''