Gary, el Pingüino Artefacto
Type safe errors?
Almost, but not quite there. For example, if a procedure requires some authentication, then in the error prop something like "AUTHENTICATION_ERROR", if the procedure also needs to validate permissions, then the error should be like "AUTHENTICATION_ERROR" | "MISSING_PERMISSIONS".
7 replies