mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-08-09 16:36:40 -07:00
16 lines
347 B
TypeScript
16 lines
347 B
TypeScript
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright 2026 Google LLC
|
||
|
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
|
*/
|
||
|
|
|
||
|
|
import type { DOMElement } from 'ink';
|
||
|
|
|
||
|
|
export const isDOMElement = (node: unknown): node is DOMElement =>
|
||
|
|
Boolean(
|
||
|
|
node &&
|
||
|
|
typeof node === 'object' &&
|
||
|
|
'nodeName' in node &&
|
||
|
|
(node as { nodeName?: unknown }).nodeName !== '#text',
|
||
|
|
);
|