[READ-ONLY] Mirror of https://github.com/bombshell-dev/tty. Platform independent 2D layout engine for terminal applications based on Clay
5

Configure Feed

Select the types of activity you want to include in your feed.

✅ enforce nonnegative transition duration

Ryan Rauh (May 31, 2026, 9:34 AM EDT) 7eab1e46 4effe2e8

+8 -1
+7
test/validate.test.ts
··· 55 55 ])).toBe(false); 56 56 }); 57 57 58 + it("rejects negative transition duration", () => { 59 + expect(validate([ 60 + open("x", { transition: { duration: -1, properties: ["x"] } }), 61 + close(), 62 + ])).toBe(false); 63 + }); 64 + 58 65 it("rejects non-array", () => { 59 66 expect(validate("garbage")).toBe(false); 60 67 });
+1 -1
validate.ts
··· 111 111 ]); 112 112 113 113 const Transition = Type.Object({ 114 - duration: Type.Number(), 114 + duration: Type.Number({ minimum: 0 }), 115 115 easing: Type.Optional(Easing), 116 116 properties: Type.Array(TransitionProperty), 117 117 interactive: Type.Optional(Type.Boolean()),