Download mods/diff/hooks/views/sections/present/present.ts from SaylorTwift/claude-code: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/views/sections/present/present.ts
- Command line
-
hf download hf://SaylorTwift/claude-code/mods/diff/hooks/views/sections/present/present.ts
-
curl -L -o present.ts https://huggingface.co/SaylorTwift/claude-code/resolve/main/mods/diff/hooks/views/sections/present/present.ts
413 Bytes
| import type { RenderElement } from 'claude-code' | |
| import { keptOf } from '../../../kept-of' | |
| /** | |
| * The children that are there: nulls dropped, so a part may answer null for | |
| * "nothing to draw" and the parent lists it all the same. | |
| * | |
| * @param children elements or nulls | |
| * @returns the elements | |
| */ | |
| export const present = ( | |
| children: readonly (RenderElement | null)[], | |
| ): RenderElement[] => keptOf(children) | |