Starting on the pixelEditor. Fixing state reset issue when moving stateful components in the store path. adding hasField host function

This commit is contained in:
Dustin Swan 2026-02-21 20:11:49 -07:00
parent 080273ac25
commit eb5618c64e
No known key found for this signature in database
GPG key ID: 30D46587E2100467
4 changed files with 61 additions and 5 deletions

View file

@ -92,6 +92,9 @@ export const _rt = {
}
return { _tag: qi === q.length ? 'True' : 'False' };
},
hasField: (field: string) => (obj: any) => ({
_tag: (typeof obj === 'object' && obj !== null && field in obj) ? 'True' : 'False'
}),
storeSearch: (query: string) => {
return Object.keys(store).filter(name => _rt.fuzzyMatch(query)(name)._tag === 'True');
},