mirror of
http://10.0.2.1:3031/sauer/claude-code.git
synced 2026-06-30 18:06:57 +10:00
11 lines
410 B
TypeScript
11 lines
410 B
TypeScript
|
|
// Store all instances of Ink (instance.js) to ensure that consecutive render() calls
|
||
|
|
// use the same instance of Ink and don't create a new one
|
||
|
|
//
|
||
|
|
// This map has to be stored in a separate file, because render.js creates instances,
|
||
|
|
// but instance.js should delete itself from the map on unmount
|
||
|
|
|
||
|
|
import type Ink from './ink.js'
|
||
|
|
|
||
|
|
const instances = new Map<NodeJS.WriteStream, Ink>()
|
||
|
|
export default instances
|