import { implementsFunction } from "@thi.ng/checks/implements-function" ; import type { IComponent } from "./api.js" ; export const isComponent = ( x ) : x is IComponent < any > => implementsFunction ( x , "mount" ) ;