1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-01 04:12:14 +02:00

Add ddeSignal type to global scope + TODOs updated

This commit is contained in:
2023-09-07 18:21:51 +02:00
parent 6fae2fc4e6
commit 9b77d65279
5 changed files with 7 additions and 6 deletions

View File

@ -14,9 +14,7 @@ const className= style.host(todosComponent).css`
/** @param {{ todos: string[] }} */
export function todosComponent({ todos= [ "A" ] }= {}){
const todosS= S([], {
/** @param {string} v */
add(v){ this.value.push(S(v)); },
/** @param {number} i */
remove(i){ this.value.splice(i, 1); },
[S.symbols.onclear](){ S.clear(...this.value); },
});