@typed/fx 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintcache CHANGED
@@ -1 +1 @@
1
- [{"/Users/TylorSteinberger/code/tylors/fx/src/Fx.ts":"1","/Users/TylorSteinberger/code/tylors/fx/src/_internal.ts":"2","/Users/TylorSteinberger/code/tylors/fx/src/combine.test.ts":"3","/Users/TylorSteinberger/code/tylors/fx/src/combine.ts":"4","/Users/TylorSteinberger/code/tylors/fx/src/continueWith.ts":"5","/Users/TylorSteinberger/code/tylors/fx/src/debounce.test.ts":"6","/Users/TylorSteinberger/code/tylors/fx/src/debounce.ts":"7","/Users/TylorSteinberger/code/tylors/fx/src/delay.test.ts":"8","/Users/TylorSteinberger/code/tylors/fx/src/delay.ts":"9","/Users/TylorSteinberger/code/tylors/fx/src/during.ts":"10","/Users/TylorSteinberger/code/tylors/fx/src/flatMap.test.ts":"11","/Users/TylorSteinberger/code/tylors/fx/src/flatMap.ts":"12","/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.ts":"13","/Users/TylorSteinberger/code/tylors/fx/src/fromEffect.ts":"14","/Users/TylorSteinberger/code/tylors/fx/src/hold.test.ts":"15","/Users/TylorSteinberger/code/tylors/fx/src/hold.ts":"16","/Users/TylorSteinberger/code/tylors/fx/src/index.ts":"17","/Users/TylorSteinberger/code/tylors/fx/src/merge.test.ts":"18","/Users/TylorSteinberger/code/tylors/fx/src/merge.ts":"19","/Users/TylorSteinberger/code/tylors/fx/src/multicast.test.ts":"20","/Users/TylorSteinberger/code/tylors/fx/src/multicast.ts":"21","/Users/TylorSteinberger/code/tylors/fx/src/orElse.ts":"22","/Users/TylorSteinberger/code/tylors/fx/src/periodic.test.ts":"23","/Users/TylorSteinberger/code/tylors/fx/src/periodic.ts":"24","/Users/TylorSteinberger/code/tylors/fx/src/provide.ts":"25","/Users/TylorSteinberger/code/tylors/fx/src/scheduled.ts":"26","/Users/TylorSteinberger/code/tylors/fx/src/since.ts":"27","/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.ts":"28","/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.ts":"29","/Users/TylorSteinberger/code/tylors/fx/src/slice.test.ts":"30","/Users/TylorSteinberger/code/tylors/fx/src/slice.ts":"31","/Users/TylorSteinberger/code/tylors/fx/src/snapshot.ts":"32","/Users/TylorSteinberger/code/tylors/fx/src/suspendSucceed.ts":"33","/Users/TylorSteinberger/code/tylors/fx/src/switchMap.test.ts":"34","/Users/TylorSteinberger/code/tylors/fx/src/switchMap.ts":"35","/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.ts":"36","/Users/TylorSteinberger/code/tylors/fx/src/throttle.test.ts":"37","/Users/TylorSteinberger/code/tylors/fx/src/throttle.ts":"38","/Users/TylorSteinberger/code/tylors/fx/src/transform.ts":"39","/Users/TylorSteinberger/code/tylors/fx/src/until.test.ts":"40","/Users/TylorSteinberger/code/tylors/fx/src/until.ts":"41","/Users/TylorSteinberger/code/tylors/fx/src/zip.test.ts":"42","/Users/TylorSteinberger/code/tylors/fx/src/zip.ts":"43","/Users/TylorSteinberger/code/tylors/fx/src/continueWith.test.ts":"44","/Users/TylorSteinberger/code/tylors/fx/src/during.test.ts":"45","/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.test.ts":"46","/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.ts":"47","/Users/TylorSteinberger/code/tylors/fx/src/filterMap.test.ts":"48","/Users/TylorSteinberger/code/tylors/fx/src/filterMap.ts":"49","/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.test.ts":"50","/Users/TylorSteinberger/code/tylors/fx/src/fromIterable.ts":"51","/Users/TylorSteinberger/code/tylors/fx/src/mapCause.test.ts":"52","/Users/TylorSteinberger/code/tylors/fx/src/mapCause.ts":"53","/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.test.ts":"54","/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.ts":"55","/Users/TylorSteinberger/code/tylors/fx/src/orElse.test.ts":"56","/Users/TylorSteinberger/code/tylors/fx/src/provide.test.ts":"57","/Users/TylorSteinberger/code/tylors/fx/src/runCollect.ts":"58","/Users/TylorSteinberger/code/tylors/fx/src/runDrain.ts":"59","/Users/TylorSteinberger/code/tylors/fx/src/runObserve.ts":"60","/Users/TylorSteinberger/code/tylors/fx/src/runReduce.ts":"61","/Users/TylorSteinberger/code/tylors/fx/src/since.test.ts":"62","/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.test.ts":"63","/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.test.ts":"64","/Users/TylorSteinberger/code/tylors/fx/src/snapshot.test.ts":"65","/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.test.ts":"66","/Users/TylorSteinberger/code/tylors/fx/src/tapEffect.ts":"67","/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.test.ts":"68","/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.ts":"69","/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.test.ts":"70","/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.ts":"71","/Users/TylorSteinberger/code/tylors/fx/src/Subject.ts":"72","/Users/TylorSteinberger/code/tylors/fx/src/Subject.test.ts":"73","/Users/TylorSteinberger/code/tylors/fx/src/struct.ts":"74"},{"size":1543,"mtime":1667245032170,"results":"75","hashOfConfig":"76"},{"size":2390,"mtime":1666909836963,"results":"77","hashOfConfig":"76"},{"size":919,"mtime":1666901217496,"results":"78","hashOfConfig":"76"},{"size":2060,"mtime":1666901217496,"results":"79","hashOfConfig":"76"},{"size":591,"mtime":1666901217497,"results":"80","hashOfConfig":"76"},{"size":522,"mtime":1666901217497,"results":"81","hashOfConfig":"76"},{"size":1617,"mtime":1666901217497,"results":"82","hashOfConfig":"76"},{"size":701,"mtime":1666901217498,"results":"83","hashOfConfig":"76"},{"size":557,"mtime":1666909013033,"results":"84","hashOfConfig":"76"},{"size":1674,"mtime":1666909765898,"results":"85","hashOfConfig":"76"},{"size":1506,"mtime":1666901217500,"results":"86","hashOfConfig":"76"},{"size":1216,"mtime":1667243469286,"results":"87","hashOfConfig":"76"},{"size":706,"mtime":1666906589152,"results":"88","hashOfConfig":"76"},{"size":3822,"mtime":1667245505029,"results":"89","hashOfConfig":"76"},{"size":1443,"mtime":1666901217502,"results":"90","hashOfConfig":"76"},{"size":3436,"mtime":1667244927623,"results":"91","hashOfConfig":"76"},{"size":1272,"mtime":1667266343718,"results":"92","hashOfConfig":"76"},{"size":530,"mtime":1666901217504,"results":"93","hashOfConfig":"76"},{"size":977,"mtime":1666901217505,"results":"94","hashOfConfig":"76"},{"size":1293,"mtime":1666901217505,"results":"95","hashOfConfig":"76"},{"size":3363,"mtime":1667243508744,"results":"96","hashOfConfig":"76"},{"size":1034,"mtime":1666901391894,"results":"97","hashOfConfig":"76"},{"size":648,"mtime":1666901217507,"results":"98","hashOfConfig":"76"},{"size":429,"mtime":1666900225601,"results":"99","hashOfConfig":"76"},{"size":2095,"mtime":1666901217508,"results":"100","hashOfConfig":"76"},{"size":2515,"mtime":1666901217509,"results":"101","hashOfConfig":"76"},{"size":1010,"mtime":1666909377506,"results":"102","hashOfConfig":"76"},{"size":959,"mtime":1666901217510,"results":"103","hashOfConfig":"76"},{"size":1300,"mtime":1666901217511,"results":"104","hashOfConfig":"76"},{"size":530,"mtime":1666901217511,"results":"105","hashOfConfig":"76"},{"size":1145,"mtime":1666901217511,"results":"106","hashOfConfig":"76"},{"size":1543,"mtime":1667245692042,"results":"107","hashOfConfig":"76"},{"size":152,"mtime":1666901217512,"results":"108","hashOfConfig":"76"},{"size":976,"mtime":1666901217513,"results":"109","hashOfConfig":"76"},{"size":1628,"mtime":1666901217513,"results":"110","hashOfConfig":"76"},{"size":777,"mtime":1666901217514,"results":"111","hashOfConfig":"76"},{"size":527,"mtime":1666901217515,"results":"112","hashOfConfig":"76"},{"size":1810,"mtime":1666901217515,"results":"113","hashOfConfig":"76"},{"size":1672,"mtime":1666901217516,"results":"114","hashOfConfig":"76"},{"size":577,"mtime":1666910433646,"results":"115","hashOfConfig":"76"},{"size":859,"mtime":1666909733301,"results":"116","hashOfConfig":"76"},{"size":832,"mtime":1666901217517,"results":"117","hashOfConfig":"76"},{"size":2163,"mtime":1666901217517,"results":"118","hashOfConfig":"76"},{"size":654,"mtime":1666901217496,"results":"119","hashOfConfig":"76"},{"size":1195,"mtime":1666923294384,"results":"120","hashOfConfig":"76"},{"size":2106,"mtime":1666901217498,"results":"121","hashOfConfig":"76"},{"size":3589,"mtime":1667243426349,"results":"122","hashOfConfig":"76"},{"size":917,"mtime":1666901217499,"results":"123","hashOfConfig":"76"},{"size":2254,"mtime":1667243443566,"results":"124","hashOfConfig":"76"},{"size":715,"mtime":1666901217501,"results":"125","hashOfConfig":"76"},{"size":541,"mtime":1667245537329,"results":"126","hashOfConfig":"76"},{"size":988,"mtime":1666901217503,"results":"127","hashOfConfig":"76"},{"size":636,"mtime":1667244943264,"results":"128","hashOfConfig":"76"},{"size":557,"mtime":1666901217504,"results":"129","hashOfConfig":"76"},{"size":474,"mtime":1666901217504,"results":"130","hashOfConfig":"76"},{"size":578,"mtime":1666901217506,"results":"131","hashOfConfig":"76"},{"size":1519,"mtime":1666901217507,"results":"132","hashOfConfig":"76"},{"size":595,"mtime":1667245260972,"results":"133","hashOfConfig":"76"},{"size":747,"mtime":1667245189503,"results":"134","hashOfConfig":"76"},{"size":1006,"mtime":1667245204826,"results":"135","hashOfConfig":"76"},{"size":1535,"mtime":1666901217509,"results":"136","hashOfConfig":"76"},{"size":1202,"mtime":1666923495584,"results":"137","hashOfConfig":"76"},{"size":770,"mtime":1666901217510,"results":"138","hashOfConfig":"76"},{"size":1116,"mtime":1666901217510,"results":"139","hashOfConfig":"76"},{"size":1270,"mtime":1666901217512,"results":"140","hashOfConfig":"76"},{"size":1080,"mtime":1666901217513,"results":"141","hashOfConfig":"76"},{"size":656,"mtime":1666901217514,"results":"142","hashOfConfig":"76"},{"size":671,"mtime":1666902216590,"results":"143","hashOfConfig":"76"},{"size":1591,"mtime":1667242706443,"results":"144","hashOfConfig":"76"},{"size":597,"mtime":1666901217517,"results":"145","hashOfConfig":"76"},{"size":1364,"mtime":1666901217517,"results":"146","hashOfConfig":"76"},{"size":2289,"mtime":1667270190787,"results":"147","hashOfConfig":"76"},{"size":685,"mtime":1667245077422,"results":"148","hashOfConfig":"76"},{"size":612,"mtime":1667266401971,"results":"149","hashOfConfig":"76"},{"filePath":"150","messages":"151","suppressedMessages":"152","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1338ja8",{"filePath":"153","messages":"154","suppressedMessages":"155","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","suppressedMessages":"158","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"159","messages":"160","suppressedMessages":"161","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","suppressedMessages":"164","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"165","messages":"166","suppressedMessages":"167","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"168","messages":"169","suppressedMessages":"170","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"171","messages":"172","suppressedMessages":"173","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","suppressedMessages":"176","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"177","messages":"178","suppressedMessages":"179","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","suppressedMessages":"182","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"183","messages":"184","suppressedMessages":"185","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","suppressedMessages":"188","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"189","messages":"190","suppressedMessages":"191","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","suppressedMessages":"194","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"195","messages":"196","suppressedMessages":"197","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"198","messages":"199","suppressedMessages":"200","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"201","messages":"202","suppressedMessages":"203","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"204","messages":"205","suppressedMessages":"206","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"207","messages":"208","suppressedMessages":"209","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"210","messages":"211","suppressedMessages":"212","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"213","messages":"214","suppressedMessages":"215","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"216","messages":"217","suppressedMessages":"218","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"219","messages":"220","suppressedMessages":"221","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"222","messages":"223","suppressedMessages":"224","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"225","messages":"226","suppressedMessages":"227","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"228","messages":"229","suppressedMessages":"230","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"231","messages":"232","suppressedMessages":"233","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"234","messages":"235","suppressedMessages":"236","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"237","messages":"238","suppressedMessages":"239","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"240","messages":"241","suppressedMessages":"242","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"243","messages":"244","suppressedMessages":"245","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"246","messages":"247","suppressedMessages":"248","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"249","messages":"250","suppressedMessages":"251","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"252","messages":"253","suppressedMessages":"254","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"255","messages":"256","suppressedMessages":"257","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"258","messages":"259","suppressedMessages":"260","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"261","messages":"262","suppressedMessages":"263","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"264","messages":"265","suppressedMessages":"266","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"267","messages":"268","suppressedMessages":"269","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"270","messages":"271","suppressedMessages":"272","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"273","messages":"274","suppressedMessages":"275","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"276","messages":"277","suppressedMessages":"278","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"279","messages":"280","suppressedMessages":"281","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"282","messages":"283","suppressedMessages":"284","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"285","messages":"286","suppressedMessages":"287","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"288","messages":"289","suppressedMessages":"290","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"291","messages":"292","suppressedMessages":"293","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"294","messages":"295","suppressedMessages":"296","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"297","messages":"298","suppressedMessages":"299","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"300","messages":"301","suppressedMessages":"302","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"303","messages":"304","suppressedMessages":"305","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"306","messages":"307","suppressedMessages":"308","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"309","messages":"310","suppressedMessages":"311","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"312","messages":"313","suppressedMessages":"314","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"315","messages":"316","suppressedMessages":"317","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"318","messages":"319","suppressedMessages":"320","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"321","messages":"322","suppressedMessages":"323","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"324","messages":"325","suppressedMessages":"326","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"327","messages":"328","suppressedMessages":"329","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"330","messages":"331","suppressedMessages":"332","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"333","messages":"334","suppressedMessages":"335","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"336","messages":"337","suppressedMessages":"338","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"339","messages":"340","suppressedMessages":"341","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"342","messages":"343","suppressedMessages":"344","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"345","messages":"346","suppressedMessages":"347","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"348","messages":"349","suppressedMessages":"350","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"351","messages":"352","suppressedMessages":"353","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"354","messages":"355","suppressedMessages":"356","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"357","messages":"358","suppressedMessages":"359","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"360","messages":"361","suppressedMessages":"362","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"363","messages":"364","suppressedMessages":"365","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"366","messages":"367","suppressedMessages":"368","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"369","messages":"370","suppressedMessages":"371","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/TylorSteinberger/code/tylors/fx/src/Fx.ts",[],["372","373","374","375","376","377"],"/Users/TylorSteinberger/code/tylors/fx/src/_internal.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/combine.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/combine.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/continueWith.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/debounce.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/debounce.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/delay.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/delay.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/during.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/hold.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/hold.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/index.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/merge.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/merge.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/multicast.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/multicast.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/orElse.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/periodic.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/periodic.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/provide.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/scheduled.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/since.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/slice.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/slice.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/snapshot.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/suspendSucceed.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/switchMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/switchMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/throttle.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/throttle.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/transform.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/until.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/until.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zip.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zip.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/continueWith.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/during.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromIterable.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapCause.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapCause.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/orElse.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/provide.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runCollect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runDrain.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runObserve.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runReduce.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/since.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/snapshot.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/tapEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/Subject.ts",[],["378"],"/Users/TylorSteinberger/code/tylors/fx/src/Subject.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/struct.ts",[],[],{"ruleId":"379","severity":1,"message":"380","line":22,"column":63,"nodeType":"381","messageId":"382","endLine":22,"endColumn":65,"suppressions":"383"},{"ruleId":"379","severity":1,"message":"384","line":22,"column":73,"nodeType":"381","messageId":"382","endLine":22,"endColumn":75,"suppressions":"385"},{"ruleId":"379","severity":1,"message":"386","line":23,"column":51,"nodeType":"381","messageId":"382","endLine":23,"endColumn":53,"suppressions":"387"},{"ruleId":"379","severity":1,"message":"384","line":23,"column":70,"nodeType":"381","messageId":"382","endLine":23,"endColumn":72,"suppressions":"388"},{"ruleId":"379","severity":1,"message":"386","line":24,"column":51,"nodeType":"381","messageId":"382","endLine":24,"endColumn":53,"suppressions":"389"},{"ruleId":"379","severity":1,"message":"380","line":24,"column":61,"nodeType":"381","messageId":"382","endLine":24,"endColumn":63,"suppressions":"390"},{"ruleId":"391","severity":2,"message":"392","line":61,"column":5,"nodeType":"393","messageId":"394","endLine":61,"endColumn":24,"suppressions":"395"},"@typescript-eslint/no-unused-vars","'_E' is defined but never used.","Identifier","unusedVar",["396"],"'_A' is defined but never used.",["397"],"'_R' is defined but never used.",["398"],["399"],["400"],["401"],"@typescript-eslint/ban-ts-comment","Include a description after the \"@ts-expect-error\" directive to explain why the @ts-expect-error is necessary. The description must be 3 characters or longer.","Line","tsDirectiveCommentRequiresDescription",["402"],{"kind":"403","justification":"404"},{"kind":"403","justification":"404"},{"kind":"403","justification":"404"},{"kind":"403","justification":"404"},{"kind":"403","justification":"404"},{"kind":"403","justification":"404"},{"kind":"403","justification":"404"},"directive",""]
1
+ [{"/Users/TylorSteinberger/code/tylors/fx/src/Fx.ts":"1","/Users/TylorSteinberger/code/tylors/fx/src/_internal.ts":"2","/Users/TylorSteinberger/code/tylors/fx/src/combine.test.ts":"3","/Users/TylorSteinberger/code/tylors/fx/src/combine.ts":"4","/Users/TylorSteinberger/code/tylors/fx/src/continueWith.ts":"5","/Users/TylorSteinberger/code/tylors/fx/src/debounce.test.ts":"6","/Users/TylorSteinberger/code/tylors/fx/src/debounce.ts":"7","/Users/TylorSteinberger/code/tylors/fx/src/delay.test.ts":"8","/Users/TylorSteinberger/code/tylors/fx/src/delay.ts":"9","/Users/TylorSteinberger/code/tylors/fx/src/during.ts":"10","/Users/TylorSteinberger/code/tylors/fx/src/flatMap.test.ts":"11","/Users/TylorSteinberger/code/tylors/fx/src/flatMap.ts":"12","/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.ts":"13","/Users/TylorSteinberger/code/tylors/fx/src/fromEffect.ts":"14","/Users/TylorSteinberger/code/tylors/fx/src/hold.test.ts":"15","/Users/TylorSteinberger/code/tylors/fx/src/hold.ts":"16","/Users/TylorSteinberger/code/tylors/fx/src/index.ts":"17","/Users/TylorSteinberger/code/tylors/fx/src/merge.test.ts":"18","/Users/TylorSteinberger/code/tylors/fx/src/merge.ts":"19","/Users/TylorSteinberger/code/tylors/fx/src/multicast.test.ts":"20","/Users/TylorSteinberger/code/tylors/fx/src/multicast.ts":"21","/Users/TylorSteinberger/code/tylors/fx/src/orElse.ts":"22","/Users/TylorSteinberger/code/tylors/fx/src/periodic.test.ts":"23","/Users/TylorSteinberger/code/tylors/fx/src/periodic.ts":"24","/Users/TylorSteinberger/code/tylors/fx/src/provide.ts":"25","/Users/TylorSteinberger/code/tylors/fx/src/scheduled.ts":"26","/Users/TylorSteinberger/code/tylors/fx/src/since.ts":"27","/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.ts":"28","/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.ts":"29","/Users/TylorSteinberger/code/tylors/fx/src/slice.test.ts":"30","/Users/TylorSteinberger/code/tylors/fx/src/slice.ts":"31","/Users/TylorSteinberger/code/tylors/fx/src/snapshot.ts":"32","/Users/TylorSteinberger/code/tylors/fx/src/suspendSucceed.ts":"33","/Users/TylorSteinberger/code/tylors/fx/src/switchMap.test.ts":"34","/Users/TylorSteinberger/code/tylors/fx/src/switchMap.ts":"35","/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.ts":"36","/Users/TylorSteinberger/code/tylors/fx/src/throttle.test.ts":"37","/Users/TylorSteinberger/code/tylors/fx/src/throttle.ts":"38","/Users/TylorSteinberger/code/tylors/fx/src/transform.ts":"39","/Users/TylorSteinberger/code/tylors/fx/src/until.test.ts":"40","/Users/TylorSteinberger/code/tylors/fx/src/until.ts":"41","/Users/TylorSteinberger/code/tylors/fx/src/zip.test.ts":"42","/Users/TylorSteinberger/code/tylors/fx/src/zip.ts":"43","/Users/TylorSteinberger/code/tylors/fx/src/continueWith.test.ts":"44","/Users/TylorSteinberger/code/tylors/fx/src/during.test.ts":"45","/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.test.ts":"46","/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.ts":"47","/Users/TylorSteinberger/code/tylors/fx/src/filterMap.test.ts":"48","/Users/TylorSteinberger/code/tylors/fx/src/filterMap.ts":"49","/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.test.ts":"50","/Users/TylorSteinberger/code/tylors/fx/src/fromIterable.ts":"51","/Users/TylorSteinberger/code/tylors/fx/src/mapCause.test.ts":"52","/Users/TylorSteinberger/code/tylors/fx/src/mapCause.ts":"53","/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.test.ts":"54","/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.ts":"55","/Users/TylorSteinberger/code/tylors/fx/src/orElse.test.ts":"56","/Users/TylorSteinberger/code/tylors/fx/src/provide.test.ts":"57","/Users/TylorSteinberger/code/tylors/fx/src/runCollect.ts":"58","/Users/TylorSteinberger/code/tylors/fx/src/runDrain.ts":"59","/Users/TylorSteinberger/code/tylors/fx/src/runObserve.ts":"60","/Users/TylorSteinberger/code/tylors/fx/src/runReduce.ts":"61","/Users/TylorSteinberger/code/tylors/fx/src/since.test.ts":"62","/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.test.ts":"63","/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.test.ts":"64","/Users/TylorSteinberger/code/tylors/fx/src/snapshot.test.ts":"65","/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.test.ts":"66","/Users/TylorSteinberger/code/tylors/fx/src/tapEffect.ts":"67","/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.test.ts":"68","/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.ts":"69","/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.test.ts":"70","/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.ts":"71","/Users/TylorSteinberger/code/tylors/fx/src/Subject.ts":"72","/Users/TylorSteinberger/code/tylors/fx/src/Subject.test.ts":"73","/Users/TylorSteinberger/code/tylors/fx/src/struct.ts":"74"},{"size":1543,"mtime":1667245032170,"results":"75","hashOfConfig":"76"},{"size":2390,"mtime":1666909836963,"results":"77","hashOfConfig":"76"},{"size":919,"mtime":1666901217496,"results":"78","hashOfConfig":"76"},{"size":2060,"mtime":1666901217496,"results":"79","hashOfConfig":"76"},{"size":591,"mtime":1666901217497,"results":"80","hashOfConfig":"76"},{"size":522,"mtime":1666901217497,"results":"81","hashOfConfig":"76"},{"size":1617,"mtime":1666901217497,"results":"82","hashOfConfig":"76"},{"size":701,"mtime":1666901217498,"results":"83","hashOfConfig":"76"},{"size":557,"mtime":1666909013033,"results":"84","hashOfConfig":"76"},{"size":1674,"mtime":1666909765898,"results":"85","hashOfConfig":"76"},{"size":1506,"mtime":1666901217500,"results":"86","hashOfConfig":"76"},{"size":1216,"mtime":1667243469286,"results":"87","hashOfConfig":"76"},{"size":706,"mtime":1666906589152,"results":"88","hashOfConfig":"76"},{"size":3822,"mtime":1667245505029,"results":"89","hashOfConfig":"76"},{"size":1443,"mtime":1666901217502,"results":"90","hashOfConfig":"76"},{"size":3501,"mtime":1667336061181,"results":"91","hashOfConfig":"76"},{"size":1272,"mtime":1667266343718,"results":"92","hashOfConfig":"76"},{"size":530,"mtime":1666901217504,"results":"93","hashOfConfig":"76"},{"size":977,"mtime":1666901217505,"results":"94","hashOfConfig":"76"},{"size":1293,"mtime":1666901217505,"results":"95","hashOfConfig":"76"},{"size":3363,"mtime":1667243508744,"results":"96","hashOfConfig":"76"},{"size":1034,"mtime":1666901391894,"results":"97","hashOfConfig":"76"},{"size":648,"mtime":1666901217507,"results":"98","hashOfConfig":"76"},{"size":429,"mtime":1666900225601,"results":"99","hashOfConfig":"76"},{"size":2095,"mtime":1666901217508,"results":"100","hashOfConfig":"76"},{"size":2515,"mtime":1666901217509,"results":"101","hashOfConfig":"76"},{"size":1010,"mtime":1666909377506,"results":"102","hashOfConfig":"76"},{"size":959,"mtime":1666901217510,"results":"103","hashOfConfig":"76"},{"size":1300,"mtime":1666901217511,"results":"104","hashOfConfig":"76"},{"size":530,"mtime":1666901217511,"results":"105","hashOfConfig":"76"},{"size":1145,"mtime":1666901217511,"results":"106","hashOfConfig":"76"},{"size":1543,"mtime":1667245692042,"results":"107","hashOfConfig":"76"},{"size":152,"mtime":1666901217512,"results":"108","hashOfConfig":"76"},{"size":976,"mtime":1666901217513,"results":"109","hashOfConfig":"76"},{"size":1628,"mtime":1666901217513,"results":"110","hashOfConfig":"76"},{"size":777,"mtime":1666901217514,"results":"111","hashOfConfig":"76"},{"size":527,"mtime":1666901217515,"results":"112","hashOfConfig":"76"},{"size":1810,"mtime":1666901217515,"results":"113","hashOfConfig":"76"},{"size":1672,"mtime":1666901217516,"results":"114","hashOfConfig":"76"},{"size":577,"mtime":1666910433646,"results":"115","hashOfConfig":"76"},{"size":859,"mtime":1666909733301,"results":"116","hashOfConfig":"76"},{"size":832,"mtime":1666901217517,"results":"117","hashOfConfig":"76"},{"size":2163,"mtime":1666901217517,"results":"118","hashOfConfig":"76"},{"size":654,"mtime":1666901217496,"results":"119","hashOfConfig":"76"},{"size":1195,"mtime":1666923294384,"results":"120","hashOfConfig":"76"},{"size":2106,"mtime":1666901217498,"results":"121","hashOfConfig":"76"},{"size":3589,"mtime":1667243426349,"results":"122","hashOfConfig":"76"},{"size":917,"mtime":1666901217499,"results":"123","hashOfConfig":"76"},{"size":2254,"mtime":1667243443566,"results":"124","hashOfConfig":"76"},{"size":715,"mtime":1666901217501,"results":"125","hashOfConfig":"76"},{"size":541,"mtime":1667245537329,"results":"126","hashOfConfig":"76"},{"size":988,"mtime":1666901217503,"results":"127","hashOfConfig":"76"},{"size":636,"mtime":1667244943264,"results":"128","hashOfConfig":"76"},{"size":557,"mtime":1666901217504,"results":"129","hashOfConfig":"76"},{"size":474,"mtime":1666901217504,"results":"130","hashOfConfig":"76"},{"size":578,"mtime":1666901217506,"results":"131","hashOfConfig":"76"},{"size":1519,"mtime":1666901217507,"results":"132","hashOfConfig":"76"},{"size":595,"mtime":1667245260972,"results":"133","hashOfConfig":"76"},{"size":747,"mtime":1667245189503,"results":"134","hashOfConfig":"76"},{"size":1006,"mtime":1667245204826,"results":"135","hashOfConfig":"76"},{"size":1535,"mtime":1666901217509,"results":"136","hashOfConfig":"76"},{"size":1202,"mtime":1666923495584,"results":"137","hashOfConfig":"76"},{"size":770,"mtime":1666901217510,"results":"138","hashOfConfig":"76"},{"size":1116,"mtime":1666901217510,"results":"139","hashOfConfig":"76"},{"size":1270,"mtime":1666901217512,"results":"140","hashOfConfig":"76"},{"size":1080,"mtime":1666901217513,"results":"141","hashOfConfig":"76"},{"size":656,"mtime":1666901217514,"results":"142","hashOfConfig":"76"},{"size":695,"mtime":1667338167016,"results":"143","hashOfConfig":"76"},{"size":1607,"mtime":1667338167016,"results":"144","hashOfConfig":"76"},{"size":597,"mtime":1666901217517,"results":"145","hashOfConfig":"76"},{"size":1364,"mtime":1666901217517,"results":"146","hashOfConfig":"76"},{"size":4489,"mtime":1667338244821,"results":"147","hashOfConfig":"76"},{"size":1700,"mtime":1667338611471,"results":"148","hashOfConfig":"76"},{"size":612,"mtime":1667266401971,"results":"149","hashOfConfig":"76"},{"filePath":"150","messages":"151","suppressedMessages":"152","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1338ja8",{"filePath":"153","messages":"154","suppressedMessages":"155","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","suppressedMessages":"158","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"159","messages":"160","suppressedMessages":"161","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","suppressedMessages":"164","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"165","messages":"166","suppressedMessages":"167","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"168","messages":"169","suppressedMessages":"170","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"171","messages":"172","suppressedMessages":"173","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","suppressedMessages":"176","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"177","messages":"178","suppressedMessages":"179","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","suppressedMessages":"182","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"183","messages":"184","suppressedMessages":"185","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","suppressedMessages":"188","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"189","messages":"190","suppressedMessages":"191","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","suppressedMessages":"194","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"195","messages":"196","suppressedMessages":"197","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"198","messages":"199","suppressedMessages":"200","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"201","messages":"202","suppressedMessages":"203","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"204","messages":"205","suppressedMessages":"206","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"207","messages":"208","suppressedMessages":"209","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"210","messages":"211","suppressedMessages":"212","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"213","messages":"214","suppressedMessages":"215","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"216","messages":"217","suppressedMessages":"218","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"219","messages":"220","suppressedMessages":"221","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"222","messages":"223","suppressedMessages":"224","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"225","messages":"226","suppressedMessages":"227","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"228","messages":"229","suppressedMessages":"230","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"231","messages":"232","suppressedMessages":"233","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"234","messages":"235","suppressedMessages":"236","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"237","messages":"238","suppressedMessages":"239","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"240","messages":"241","suppressedMessages":"242","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"243","messages":"244","suppressedMessages":"245","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"246","messages":"247","suppressedMessages":"248","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"249","messages":"250","suppressedMessages":"251","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"252","messages":"253","suppressedMessages":"254","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"255","messages":"256","suppressedMessages":"257","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"258","messages":"259","suppressedMessages":"260","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"261","messages":"262","suppressedMessages":"263","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"264","messages":"265","suppressedMessages":"266","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"267","messages":"268","suppressedMessages":"269","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"270","messages":"271","suppressedMessages":"272","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"273","messages":"274","suppressedMessages":"275","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"276","messages":"277","suppressedMessages":"278","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"279","messages":"280","suppressedMessages":"281","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"282","messages":"283","suppressedMessages":"284","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"285","messages":"286","suppressedMessages":"287","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"288","messages":"289","suppressedMessages":"290","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"291","messages":"292","suppressedMessages":"293","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"294","messages":"295","suppressedMessages":"296","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"297","messages":"298","suppressedMessages":"299","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"300","messages":"301","suppressedMessages":"302","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"303","messages":"304","suppressedMessages":"305","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"306","messages":"307","suppressedMessages":"308","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"309","messages":"310","suppressedMessages":"311","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"312","messages":"313","suppressedMessages":"314","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"315","messages":"316","suppressedMessages":"317","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"318","messages":"319","suppressedMessages":"320","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"321","messages":"322","suppressedMessages":"323","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"324","messages":"325","suppressedMessages":"326","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"327","messages":"328","suppressedMessages":"329","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"330","messages":"331","suppressedMessages":"332","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"333","messages":"334","suppressedMessages":"335","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"336","messages":"337","suppressedMessages":"338","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"339","messages":"340","suppressedMessages":"341","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"342","messages":"343","suppressedMessages":"344","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"345","messages":"346","suppressedMessages":"347","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"348","messages":"349","suppressedMessages":"350","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"351","messages":"352","suppressedMessages":"353","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"354","messages":"355","suppressedMessages":"356","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"357","messages":"358","suppressedMessages":"359","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"360","messages":"361","suppressedMessages":"362","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"363","messages":"364","suppressedMessages":"365","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"366","messages":"367","suppressedMessages":"368","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"369","messages":"370","suppressedMessages":"371","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/TylorSteinberger/code/tylors/fx/src/Fx.ts",[],["372","373","374","375","376","377"],"/Users/TylorSteinberger/code/tylors/fx/src/_internal.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/combine.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/combine.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/continueWith.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/debounce.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/debounce.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/delay.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/delay.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/during.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/hold.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/hold.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/index.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/merge.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/merge.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/multicast.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/multicast.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/orElse.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/periodic.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/periodic.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/provide.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/scheduled.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/since.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/slice.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/slice.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/snapshot.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/suspendSucceed.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/switchMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/switchMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/throttle.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/throttle.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/transform.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/until.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/until.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zip.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zip.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/continueWith.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/during.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterLoop.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterMap.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/filterMap.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/flatMapConcurrently.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/fromIterable.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapCause.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapCause.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/mapEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/orElse.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/provide.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runCollect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runDrain.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runObserve.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/runReduce.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/since.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipRepeats.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/skipWhile.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/snapshot.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/takeWhile.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/tapEffect.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/withEmitter.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/zipIterable.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/Subject.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/Subject.test.ts",[],[],"/Users/TylorSteinberger/code/tylors/fx/src/struct.ts",[],[],{"ruleId":"378","severity":1,"message":"379","line":22,"column":63,"nodeType":"380","messageId":"381","endLine":22,"endColumn":65,"suppressions":"382"},{"ruleId":"378","severity":1,"message":"383","line":22,"column":73,"nodeType":"380","messageId":"381","endLine":22,"endColumn":75,"suppressions":"384"},{"ruleId":"378","severity":1,"message":"385","line":23,"column":51,"nodeType":"380","messageId":"381","endLine":23,"endColumn":53,"suppressions":"386"},{"ruleId":"378","severity":1,"message":"383","line":23,"column":70,"nodeType":"380","messageId":"381","endLine":23,"endColumn":72,"suppressions":"387"},{"ruleId":"378","severity":1,"message":"385","line":24,"column":51,"nodeType":"380","messageId":"381","endLine":24,"endColumn":53,"suppressions":"388"},{"ruleId":"378","severity":1,"message":"379","line":24,"column":61,"nodeType":"380","messageId":"381","endLine":24,"endColumn":63,"suppressions":"389"},"@typescript-eslint/no-unused-vars","'_E' is defined but never used.","Identifier","unusedVar",["390"],"'_A' is defined but never used.",["391"],"'_R' is defined but never used.",["392"],["393"],["394"],["395"],{"kind":"396","justification":"397"},{"kind":"396","justification":"397"},{"kind":"396","justification":"397"},{"kind":"396","justification":"397"},{"kind":"396","justification":"397"},{"kind":"396","justification":"397"},"directive",""]
package/cjs/Subject.d.ts CHANGED
@@ -1,26 +1,24 @@
1
1
  import { Cause } from '@effect/core/io/Cause';
2
- import * as Effect from '@effect/core/io/Effect';
2
+ import * as Ref from '@effect/core/io/Ref';
3
3
  import { LazyArg } from '@tsplus/stdlib/data/Function';
4
4
  import * as Maybe from '@tsplus/stdlib/data/Maybe';
5
- import { Fx } from './Fx.js';
6
- export interface Subject<E, A> extends SubjectEmitter<E, A>, Fx<never, E, A> {
5
+ import { Emitter, Fx } from './Fx.js';
6
+ export interface Subject<E, A> extends Fx<never, E, A>, Emitter<never, E, A>, UnsafeEmitter<E, A> {
7
7
  }
8
- export interface SubjectEmitter<E, A> {
9
- readonly emit: (a: A) => void;
10
- readonly failCause: (cause: Cause<E>) => void;
11
- readonly end: () => void;
8
+ export interface UnsafeEmitter<E, A> {
9
+ readonly unsafeEmit: (a: A) => void;
10
+ readonly unsafeFailCause: (cause: Cause<E>) => void;
11
+ readonly unsafeEnd: () => void;
12
12
  }
13
13
  export declare namespace Subject {
14
14
  const unsafeMake: <E, A>() => Subject<E, A>;
15
15
  }
16
- export interface HoldSubject<E, A> extends Subject<E, A> {
17
- readonly get: Effect.Effect<never, never, Maybe.Maybe<A>>;
16
+ export interface HoldSubject<E, A> extends Subject<E, A>, Ref.Ref<Maybe.Maybe<A>> {
18
17
  }
19
18
  export declare namespace HoldSubject {
20
19
  const unsafeMake: <E, A>() => HoldSubject<E, A>;
21
20
  }
22
- export interface BehaviorSubject<E, A> extends Subject<E, A> {
23
- readonly get: Effect.Effect<never, never, A>;
21
+ export interface BehaviorSubject<E, A> extends Subject<E, A>, Ref.Ref<A> {
24
22
  }
25
23
  export declare namespace BehaviorSubject {
26
24
  const unsafeMake: <E, A>(initial: LazyArg<A>) => BehaviorSubject<E, A>;
@@ -1 +1 @@
1
- {"version":3,"file":"Subject.d.ts","sourceRoot":"","sources":["../src/Subject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AACtD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAK5B,MAAM,WAAW,OAAO,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;CAAG;AAE/E,MAAM,WAAW,cAAc,CAAC,CAAC,EAAE,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAA;IAC7B,QAAQ,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAA;IAC7C,QAAQ,CAAC,GAAG,EAAE,MAAM,IAAI,CAAA;CACzB;AAED,yBAAiB,OAAO,CAAC;IAChB,MAAM,UAAU,2BAStB,CAAA;CACF;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IACtD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,C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AatB,CAAA;CACF;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;CAAG;AAEpF,yBAAiB,WAAW,CAAC;IACpB,MAAM,UAAU,+BAetB,CAAA;CACF;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;CAAG;AAE3E,yBAAiB,eAAe,CAAC;IACxB,MAAM,UAAU,sDAmBtB,CAAA;CACF"}
package/cjs/Subject.js CHANGED
@@ -25,20 +25,32 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.BehaviorSubject = exports.HoldSubject = exports.Subject = void 0;
27
27
  const Effect = __importStar(require("@effect/core/io/Effect"));
28
+ const Ref = __importStar(require("@effect/core/io/Ref"));
29
+ const AtomicInternal_1 = require("@effect/core/io/Ref/operations/_internal/AtomicInternal");
28
30
  const Function_1 = require("@fp-ts/data/Function");
31
+ const Function_2 = require("@tsplus/stdlib/data/Function");
29
32
  const Maybe = __importStar(require("@tsplus/stdlib/data/Maybe"));
30
33
  const fromEffect_js_1 = require("./fromEffect.js");
31
34
  const hold_js_1 = require("./hold.js");
32
35
  const multicast_js_1 = require("./multicast.js");
36
+ const FX_BRANDING = {
37
+ _R: () => void 0,
38
+ _E: () => void 0,
39
+ _A: () => void 0,
40
+ };
33
41
  var Subject;
34
42
  (function (Subject) {
35
43
  Subject.unsafeMake = () => {
36
44
  const m = new multicast_js_1.Multicast(fromEffect_js_1.never);
37
45
  return {
46
+ ...FX_BRANDING,
38
47
  run: m.run.bind(m),
39
- emit: (a) => Effect.unsafeRunAsync(m.emit(a)),
40
- failCause: (c) => Effect.unsafeRunAsync(m.failCause(c)),
41
- end: () => Effect.unsafeRunAsync(m.end),
48
+ emit: m.emit.bind(m),
49
+ failCause: m.failCause.bind(m),
50
+ end: m.end,
51
+ unsafeEmit: (a) => Effect.unsafeRunAsync(m.emit(a)),
52
+ unsafeFailCause: (c) => Effect.unsafeRunAsync(m.failCause(c)),
53
+ unsafeEnd: () => Effect.unsafeRunAsync(m.end),
42
54
  };
43
55
  };
44
56
  })(Subject = exports.Subject || (exports.Subject = {}));
@@ -46,12 +58,17 @@ var HoldSubject;
46
58
  (function (HoldSubject) {
47
59
  HoldSubject.unsafeMake = () => {
48
60
  const h = new hold_js_1.Hold(fromEffect_js_1.never);
61
+ const ref = new AtomicInternal_1.AtomicInternal(new AtomicInternal_1.UnsafeAPI(h.value));
49
62
  return {
63
+ ...FX_BRANDING,
64
+ ...ref,
50
65
  run: h.run.bind(h),
51
- get: h.get,
52
- emit: (a) => Effect.unsafeRunAsync(h.emit(a)),
53
- failCause: (c) => Effect.unsafeRunAsync(h.failCause(c)),
54
- end: () => Effect.unsafeRunAsync(h.end),
66
+ emit: h.emit.bind(h),
67
+ failCause: h.failCause.bind(h),
68
+ end: h.end,
69
+ unsafeEmit: (a) => Effect.unsafeRunAsync(h.emit(a)),
70
+ unsafeFailCause: (c) => Effect.unsafeRunAsync(h.failCause(c)),
71
+ unsafeEnd: () => Effect.unsafeRunAsync(h.end),
55
72
  };
56
73
  };
57
74
  })(HoldSubject = exports.HoldSubject || (exports.HoldSubject = {}));
@@ -59,17 +76,52 @@ var BehaviorSubject;
59
76
  (function (BehaviorSubject) {
60
77
  BehaviorSubject.unsafeMake = (initial) => {
61
78
  const h = new hold_js_1.Hold(fromEffect_js_1.never);
62
- // We're mutating a protected variable here to ensure an initial value is held.
63
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
64
- // @ts-expect-error
65
- h._value = Maybe.some(initial());
79
+ const maybeRef = new AtomicInternal_1.AtomicInternal(new AtomicInternal_1.UnsafeAPI(h.value));
80
+ const ref = invmapRef(maybeRef, Maybe.getOrElse(initial), Maybe.some);
81
+ // Ensure there is always a value in the Ref
82
+ h.value.set(Maybe.some(initial()));
66
83
  return {
84
+ ...FX_BRANDING,
85
+ ...ref,
67
86
  run: h.run.bind(h),
68
- get: (0, Function_1.pipe)(h.get, Effect.map(Maybe.getOrElse(initial))),
69
- emit: (a) => Effect.unsafeRunAsync(h.emit(a)),
70
- failCause: (c) => Effect.unsafeRunAsync(h.failCause(c)),
71
- end: () => Effect.unsafeRunAsync(h.end),
87
+ emit: h.emit.bind(h),
88
+ failCause: h.failCause.bind(h),
89
+ end: h.end,
90
+ unsafeEmit: (a) => Effect.unsafeRunAsync(h.emit(a)),
91
+ unsafeFailCause: (c) => Effect.unsafeRunAsync(h.failCause(c)),
92
+ unsafeEnd: () => Effect.unsafeRunAsync(h.end),
72
93
  };
73
94
  };
74
95
  })(BehaviorSubject = exports.BehaviorSubject || (exports.BehaviorSubject = {}));
96
+ function invmapRef(ref, to, from) {
97
+ const get = (0, Function_2.pipe)(ref.get, Effect.map(to));
98
+ const modify = (f) => ref.modify((a) => {
99
+ const [b, c] = f(to(a));
100
+ return [b, from(c)];
101
+ });
102
+ const set = (0, Function_1.flow)(from, ref.set);
103
+ const getAndSet = (0, Function_1.flow)(from, ref.getAndSet, Effect.map(to));
104
+ const getAndUpdate = (f) => (0, Function_2.pipe)(ref.getAndUpdate((0, Function_1.flow)(to, f, from)), Effect.map(to));
105
+ const getAndUpdateSome = (f) => (0, Function_2.pipe)(ref.getAndUpdateSome((0, Function_1.flow)(to, f, Maybe.map(from))), Effect.map(to));
106
+ const modifySome = (fallback, f) => ref.modifySome(fallback, (a) => (0, Function_2.pipe)(a, to, f, Maybe.map(([c, b]) => [c, from(b)])));
107
+ const update = (f) => ref.update((0, Function_1.flow)(to, f, from));
108
+ const updateAndGet = (f) => (0, Function_2.pipe)(ref.updateAndGet((0, Function_1.flow)(to, f, from)), Effect.map(to));
109
+ const updateSome = (f) => ref.updateSome((0, Function_1.flow)(to, f, Maybe.map(from)));
110
+ const updateSomeAndGet = (f) => (0, Function_2.pipe)(ref.updateSomeAndGet((0, Function_1.flow)(to, f, Maybe.map(from))), Effect.map(to));
111
+ return {
112
+ [Ref.RefSym]: Ref.RefSym,
113
+ [Ref._A]: (_) => _,
114
+ get,
115
+ modify,
116
+ set,
117
+ getAndSet,
118
+ getAndUpdate,
119
+ getAndUpdateSome,
120
+ modifySome,
121
+ update,
122
+ updateAndGet,
123
+ updateSome,
124
+ updateSomeAndGet,
125
+ };
126
+ }
75
127
  //# sourceMappingURL=Subject.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Subject.js","sourceRoot":"","sources":["../src/Subject.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+DAAgD;AAChD,mDAA2C;AAE3C,iEAAkD;AAGlD,mDAAuC;AACvC,uCAAgC;AAChC,iDAA0C;AAU1C,IAAiB,OAAO,CAWvB;AAXD,WAAiB,OAAO;IACT,kBAAU,GAAG,GAAwB,EAAE;QAClD,MAAM,CAAC,GAAG,IAAI,wBAAS,CAAc,qBAAK,CAAC,CAAA;QAE3C,OAAO;YACL,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;YAClB,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAC7C,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACvD,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC;SACvB,CAAA;IACpB,CAAC,CAAA;AACH,CAAC,EAXgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAWvB;AAMD,IAAiB,WAAW,CAY3B;AAZD,WAAiB,WAAW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ts CHANGED
@@ -2,17 +2,17 @@ import { Cause } from '@effect/core/io/Cause';
2
2
  import * as Effect from '@effect/core/io/Effect';
3
3
  import * as Fiber from '@effect/core/io/Fiber';
4
4
  import { Scope } from '@effect/core/io/Scope';
5
+ import { AtomicReference } from '@tsplus/stdlib/data/AtomicReference';
5
6
  import * as Maybe from '@tsplus/stdlib/data/Maybe';
6
7
  import { Emitter, Fx } from './Fx.js';
7
8
  import { Multicast, MulticastObserver } from './multicast.js';
8
9
  export declare function hold<R, E, A>(fx: Fx<R, E, A>): Fx<R, E, A>;
9
10
  export declare class Hold<R, E, A> extends Multicast<R, E, A> {
10
11
  readonly fx: Fx<R, E, A>;
11
- protected _value: Maybe.Maybe<A>;
12
+ readonly value: AtomicReference<Maybe.Maybe<A>>;
12
13
  protected _pendingEmitters: Array<readonly [Emitter<unknown, E, A>, A[]]>;
13
14
  protected _scheduledFiber: Fiber.RealFiber<any, any> | undefined;
14
15
  constructor(fx: Fx<R, E, A>);
15
- readonly get: Effect.Effect<never, never, Maybe.Maybe<A>>;
16
16
  run<R2>(emitter: Emitter<R2, E, A>): Effect.Effect<R | R2 | Scope, never, unknown>;
17
17
  emit(value: A): Effect.Effect<never, never, void>;
18
18
  failCause(cause: Cause<E>): Effect.Effect<never, never, void>;
package/cjs/hold.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"hold.d.ts","sourceRoot":"","sources":["../src/hold.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAChD,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAA;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAG7C,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,iBA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AC,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAK;IAC9E,SAAS,CAAC,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS,CAAA;gBAE3C,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAIpC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC;IAWlF,IAAI,CAAC,KAAK,EAAE,CAAC;IAWb,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;IASzB,IAAI,GAAG,sCAON;IAED,SAAS,CAAC,mBAAmB;IAI7B,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IA6BrD,SAAS,CAAC,YAAY;IAsBtB,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;IAQ3B,SAAS,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,SAAS;CAG7F"}
package/cjs/hold.js CHANGED
@@ -27,6 +27,7 @@ exports.Hold = exports.hold = void 0;
27
27
  const Effect = __importStar(require("@effect/core/io/Effect"));
28
28
  const FiberId = __importStar(require("@effect/core/io/FiberId"));
29
29
  const Function_1 = require("@fp-ts/data/Function");
30
+ const AtomicReference_1 = require("@tsplus/stdlib/data/AtomicReference");
30
31
  const Duration = __importStar(require("@tsplus/stdlib/data/Duration"));
31
32
  const Maybe = __importStar(require("@tsplus/stdlib/data/Maybe"));
32
33
  const multicast_js_1 = require("./multicast.js");
@@ -36,14 +37,13 @@ function hold(fx) {
36
37
  exports.hold = hold;
37
38
  class Hold extends multicast_js_1.Multicast {
38
39
  fx;
39
- _value = Maybe.none;
40
+ value = new AtomicReference_1.AtomicReference(Maybe.none);
40
41
  _pendingEmitters = [];
41
42
  _scheduledFiber;
42
43
  constructor(fx) {
43
44
  super(fx);
44
45
  this.fx = fx;
45
46
  }
46
- get = Effect.sync(() => this._value);
47
47
  run(emitter) {
48
48
  if (this.shouldScheduleFlush()) {
49
49
  return (0, Function_1.pipe)(this.scheduleFlush(emitter), Effect.flatMap(() => super.run(emitter)));
@@ -63,12 +63,12 @@ class Hold extends multicast_js_1.Multicast {
63
63
  return Effect.suspendSucceed(() => (0, Function_1.pipe)(this.flushPending(), Effect.flatMap(() => super.end)));
64
64
  }
65
65
  shouldScheduleFlush() {
66
- return Maybe.isSome(this._value) && this.observers.length > 0;
66
+ return Maybe.isSome(this.value.get) && this.observers.length > 0;
67
67
  }
68
68
  scheduleFlush(observer) {
69
69
  this._pendingEmitters.push([
70
70
  observer,
71
- (0, Function_1.pipe)(this._value, Maybe.fold(() => [], (a) => [a])),
71
+ (0, Function_1.pipe)(this.value.get, Maybe.fold(() => [], (a) => [a])),
72
72
  ]);
73
73
  const interrupt = this._scheduledFiber
74
74
  ? this._scheduledFiber.interruptAsFork(new FiberId.None())
@@ -92,7 +92,7 @@ class Hold extends multicast_js_1.Multicast {
92
92
  }));
93
93
  }
94
94
  addValue(value) {
95
- this._value = Maybe.some(value);
95
+ this.value.set(Maybe.some(value));
96
96
  this._pendingEmitters.forEach(([, values]) => {
97
97
  values.push(value);
98
98
  });
package/cjs/hold.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"hold.js","sourceRoot":"","sources":["../src/hold.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+DAAgD;AAEhD,iEAAkD;AAElD,mDAA2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;QACpD,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,CAAA;IAC1D,CAAC;CACF;AAnHD,oBAmHC"}
@@ -1,5 +1,5 @@
1
1
  import * as Effect from '@effect/core/io/Effect';
2
2
  import { Fx } from './Fx.js';
3
- import type { SubjectEmitter } from './Subject.js';
4
- export declare function withEmitter<R, E, A>(f: (emitter: SubjectEmitter<E, A>) => Effect.Canceler<R>): Fx<R, E, A>;
3
+ import type { UnsafeEmitter } from './Subject.js';
4
+ export declare function withEmitter<R, E, A>(f: (emitter: UnsafeEmitter<E, A>) => Effect.Canceler<R>): Fx<R, E, A>;
5
5
  //# sourceMappingURL=withEmitter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withEmitter.d.ts","sourceRoot":"","sources":["../src/withEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAMhD,OAAO,EAAW,EAAE,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAElD,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EACjC,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,GACvD,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAiCb"}
1
+ {"version":3,"file":"withEmitter.d.ts","sourceRoot":"","sources":["../src/withEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAMhD,OAAO,EAAW,EAAE,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEjD,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EACjC,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,GACtD,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAiCb"}
@@ -40,9 +40,9 @@ function withEmitter(f) {
40
40
  let canceler = Effect.unit;
41
41
  return (0, Function_1.pipe)(Effect.addFinalizer(Effect.suspendSucceed(() => canceler)), Effect.zipRight(Effect.asyncEffect((cb) => {
42
42
  canceler = f({
43
- emit: (a) => unsafeRun(sink.emit(a), (exit) => Exit.isFailure(exit) ? cb(Effect.failCause(exit.cause)) : undefined),
44
- failCause: (e) => unsafeRun(sink.failCause(e), (0, Function_1.flow)(Effect.done, cb)),
45
- end: () => unsafeRun(sink.end, (0, Function_1.flow)(Effect.done, cb)),
43
+ unsafeEmit: (a) => unsafeRun(sink.emit(a), (exit) => Exit.isFailure(exit) ? cb(Effect.failCause(exit.cause)) : undefined),
44
+ unsafeFailCause: (e) => unsafeRun(sink.failCause(e), (0, Function_1.flow)(Effect.done, cb)),
45
+ unsafeEnd: () => unsafeRun(sink.end, (0, Function_1.flow)(Effect.done, cb)),
46
46
  });
47
47
  return canceler;
48
48
  })));
@@ -1 +1 @@
1
- {"version":3,"file":"withEmitter.js","sourceRoot":"","sources":["../src/withEmitter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAAgD;AAChD,2DAA4C;AAC5C,qEAA6E;AAE7E,mDAAiD;AAEjD,mCAAqC;AAGrC,SAAgB,WAAW,CACzB,CAAwD;IAExD,OAAO,IAAA,UAAE,EAAU,CAAK,IAAuB,EAAE,EAAE;QACjD,OAAO,MAAM,CAAC,gBAAgB,CAAiC,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAC/E,MAAM,SAAS,GAAG,CAChB,GAA2B,EAC3B,QAAyC,EACzC,EAAE;gBACF,MAAM,CAAC,GAAG,IA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AS,CAAC,CAAC,CAAC,EAAE,IAAA,eAAI,EAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;oBAC3E,SAAS,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,EAAE,IAAA,eAAI,EAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;iBAC5D,CAAC,CAAA;gBAEF,OAAO,QAAQ,CAAA;YACjB,CAAC,CAAC,CACH,CACF,CAAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC;AAnCD,kCAmCC"}
package/esm/Subject.d.ts CHANGED
@@ -1,26 +1,24 @@
1
1
  import { Cause } from '@effect/core/io/Cause';
2
- import * as Effect from '@effect/core/io/Effect';
2
+ import * as Ref from '@effect/core/io/Ref';
3
3
  import { LazyArg } from '@tsplus/stdlib/data/Function';
4
4
  import * as Maybe from '@tsplus/stdlib/data/Maybe';
5
- import { Fx } from './Fx.js';
6
- export interface Subject<E, A> extends SubjectEmitter<E, A>, Fx<never, E, A> {
5
+ import { Emitter, Fx } from './Fx.js';
6
+ export interface Subject<E, A> extends Fx<never, E, A>, Emitter<never, E, A>, UnsafeEmitter<E, A> {
7
7
  }
8
- export interface SubjectEmitter<E, A> {
9
- readonly emit: (a: A) => void;
10
- readonly failCause: (cause: Cause<E>) => void;
11
- readonly end: () => void;
8
+ export interface UnsafeEmitter<E, A> {
9
+ readonly unsafeEmit: (a: A) => void;
10
+ readonly unsafeFailCause: (cause: Cause<E>) => void;
11
+ readonly unsafeEnd: () => void;
12
12
  }
13
13
  export declare namespace Subject {
14
14
  const unsafeMake: <E, A>() => Subject<E, A>;
15
15
  }
16
- export interface HoldSubject<E, A> extends Subject<E, A> {
17
- readonly get: Effect.Effect<never, never, Maybe.Maybe<A>>;
16
+ export interface HoldSubject<E, A> extends Subject<E, A>, Ref.Ref<Maybe.Maybe<A>> {
18
17
  }
19
18
  export declare namespace HoldSubject {
20
19
  const unsafeMake: <E, A>() => HoldSubject<E, A>;
21
20
  }
22
- export interface BehaviorSubject<E, A> extends Subject<E, A> {
23
- readonly get: Effect.Effect<never, never, A>;
21
+ export interface BehaviorSubject<E, A> extends Subject<E, A>, Ref.Ref<A> {
24
22
  }
25
23
  export declare namespace BehaviorSubject {
26
24
  const unsafeMake: <E, A>(initial: LazyArg<A>) => BehaviorSubject<E, A>;
@@ -1 +1 @@
1
- {"version":3,"file":"Subject.d.ts","sourceRoot":"","sources":["../src/Subject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAA;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AACtD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAK5B,MAAM,WAAW,OAAO,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;CAAG;AAE/E,MAAM,WAAW,cAAc,CAAC,CAAC,EAAE,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAA;IAC7B,QAAQ,CAAC,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAA;IAC7C,QAAQ,CAAC,GAAG,EAAE,MAAM,IAAI,CAAA;CACzB;AAED,yBAAiB,OAAO,CAAC;IAChB,MAAM,UAAU,2BAStB,CAAA;CACF;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IACtD,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,E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