isFunctionLike

tcmts.core.ts.isFunctionLike · #fuoflsdr · term · runs anywhere

Functions, methods, accessors, constructors and their signatures (TypeScript 6's isFunctionLike).

import { FUNCTION_LIKE } from "#codebase/tcmts/core/ts";
import type { Node } from "typescript/ast";

export const isFunctionLike = (node: Node | undefined): boolean => !!node && FUNCTION_LIKE.has(node.kind)

uses

used by