MCPcopy Create free account
hub / github.com/deepnote/deepnote / stripOutputsFromBlocks

Function stripOutputsFromBlocks

packages/convert/src/snapshot/split.ts:116–118  ·  view source on GitHub ↗
(blocks: ReadonlyArray<DeepnoteBlock>)

Source from the content-addressed store, hash-verified

114 */
115/** Strips execution outputs from every block in an array. */
116export function stripOutputsFromBlocks(blocks: ReadonlyArray<DeepnoteBlock>): DeepnoteBlock[] {
117 return blocks.map(stripOutputsFromBlock)
118}
119
120export function stripOutputsFromBlock(block: DeepnoteBlock): DeepnoteBlock {
121 if (!isExecutableBlockType(block.type)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected