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

Function hasAnyProps

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

Source from the content-addressed store, hash-verified

252 return a.color === b.color && a.backgroundColor === b.backgroundColor && a.bold === b.bold && a.dim === b.dim && a.italic === b.italic && a.underline === b.underline && a.strikethrough === b.strikethrough && a.inverse === b.inverse && a.hyperlink === b.hyperlink;
253}
254function hasAnyProps(props: SpanProps): boolean {
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}

Callers 1

Ansi.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected