import { ComparableValues } from '@typed/lambda' ; import { Nothing } from '@typed/maybe' ; import { TextVNode , VNode , VNodeType } from '../../model/VNode' ; export function text ( text , key ? ) { return { type : VNodeType . Text , text , key , node : { current : Nothing } , } ; } export function isText ( vNode ) { return vNode . type === VNodeType . Text ; }