Posts by Jeffyter Saraiva • 41 points
2 posts
-
0
votes1
answer54
viewsQ: Error "Argument of type is not Assignable to" in function with Rest parameters in Typescript
I got a guy Role which must be a roles object key and a function that returns all keys: export type Role = keyof typeof roles; export function allRoles(): Role[] { return Object.keys(roles) as…
-
3
votes1
answer55
viewsA: How to know which columns were modified in an UPDATE using TRIGGER?
I think you’ll have to do the checks one by one, for example: @IF (OLD.column != NEW.column) SET `outraColuna` = OLD.outraColuna + 1; Something like that