MCPcopy Create free account
hub / github.com/Noumena-Network/code / hasAnyTextProps

Function hasAnyTextProps

src/ink/Ansi.tsx:257–259  ·  view source on GitHub ↗
(props: SpanProps)

Source from the content-addressed store, hash-verified

255 return props.color !== undefined || props.backgroundColor !== undefined || props.dim === true || props.bold === true || props.italic === true || props.underline === true || props.strikethrough === true || props.inverse === true || props.hyperlink !== undefined;
256}
257function hasAnyTextProps(props: SpanProps): boolean {
258 return props.color !== undefined || props.backgroundColor !== undefined || props.dim === true || props.bold === true || props.italic === true || props.underline === true || props.strikethrough === true || props.inverse === true;
259}
260
261// Text style props without weight (bold/dim) - these are handled separately
262type BaseTextStyleProps = {

Callers 1

Ansi.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected