mirror of
https://github.com/janishutz/fundamentals-of-webengineering.git
synced 2026-01-08 07:58:23 +01:00
Start framework refactor
This commit is contained in:
1 parent
d35a47e4b0
commit
b156ddedb9
8 files changed
+335
-243
No files matched your search
+2
@@ -4,6 +4,7 @@ export interface Ref<T> {
|
||||
'setConditionalElements': ( elements: HTMLElement[] ) => void;
|
||||
'addConditionalClasses': ( element: HTMLElement, onTrue: string, onFalse: string ) => void;
|
||||
'bind': ( element: HTMLInputElement, castFunction: ( val: string ) => T ) => void;
|
||||
'onChange': ( callback: () => void ) => void;
|
||||
}
|
||||
|
||||
export interface ListRef<T> {
|
||||
@@ -12,6 +13,7 @@ export interface ListRef<T> {
|
||||
'sort': ( compare: ( a: T, b: T ) => number ) => void;
|
||||
'filter': ( predicate: ( value: T ) => boolean ) => void;
|
||||
'setTemplate': ( newTemplate: RenderTemplate ) => void;
|
||||
'onChange': ( callback: () => void ) => void;
|
||||
}
|
||||
|
||||
export type HTMLTagNames = keyof HTMLElementTagNameMap;
|
||||
|
||||
Reference in new issue
Block a user