UNPKG

typedoc-better-json

Version:

Transforms typedoc's json output to a format that is better for creating custom documentation website

11 lines (8 loc) 267 B
export function isHook(name: string) { if (!name.startsWith("use")) { return false; } const fourthChar = name.charAt(3); // if the fourth character is uppercase, it's a hook, otherwise it's a function return fourthChar === fourthChar.toUpperCase(); }