@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 14 lines 227 Bytes
Raw
1 /**
2 * @title Using the Predicate module
3 */
4 import { Predicate } from "effect"
5
6 const thing: unknown = {
7 a: 1
8 }
9
10 if (Predicate.isObject(thing)) {
11 if (Predicate.isNumber(thing.a)) {
12 console.log("number", thing.a)
13 }
14 }