Type guard for the Text Part.
import {Draw} from 'effect-tree'const part1 = Draw.text('hello')const part2 = Draw.emptyexpect(Draw.isText(part1), 'text').toBe(true)expect(Draw.isText(part2), 'not text').toBe(false) Copy
import {Draw} from 'effect-tree'const part1 = Draw.text('hello')const part2 = Draw.emptyexpect(Draw.isText(part1), 'text').toBe(true)expect(Draw.isText(part2), 'not text').toBe(false)
Type guard for the Text Part.