You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
j.pipe(source,// definitely an `assert` namespacej.assert.notEmpty(),// maybe a few more inner namespaces for groups of related functionsj.assert.length.atLeast(3),j.assert.each.satisfies(tg.isNumber),// type guards// not entirely sure what's needed here without some case studiesj.catchError((error)=>j.Empty()),// also not entirely sure if this is even possible)
Assertions would be partial triggers -- they would never yield values through before understanding that the condition is satisfied. In other words, they should either behave like passThrough or throw an error. They can tweak the type information though (e.g. the satisfies from the example above.
The text was updated successfully, but these errors were encountered:
j.assert.each.satisfies would also be a great start of a chain when defining a custom operator using the point-free style (see #16). It will be possible to avoid the awkwardly placed type inside the first operator, and provide inline documentation.
Something like this?
Assertions would be partial triggers -- they would never yield values through before understanding that the condition is satisfied. In other words, they should either behave like
passThrough
or throw an error. They can tweak the type information though (e.g. thesatisfies
from the example above.The text was updated successfully, but these errors were encountered: