This commit is contained in:
Bryan Ramos 2026-03-31 12:46:52 -04:00
commit 55ae41cb0c
1902 changed files with 513237 additions and 0 deletions

10
ink/instances.ts Normal file
View file

@ -0,0 +1,10 @@
// 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