@typed/fx 0.0.16 → 0.0.18
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 +1 -1
- package/cjs/Subject.d.ts +15 -10
- package/cjs/Subject.d.ts.map +1 -1
- package/cjs/Subject.js +123 -21
- package/cjs/Subject.js.map +1 -1
- package/cjs/hold.d.ts +2 -2
- package/cjs/hold.d.ts.map +1 -1
- package/cjs/hold.js +5 -5
- package/cjs/hold.js.map +1 -1
- package/cjs/withEmitter.d.ts +2 -2
- package/cjs/withEmitter.d.ts.map +1 -1
- package/cjs/withEmitter.js +3 -3
- package/cjs/withEmitter.js.map +1 -1
- package/esm/Subject.d.ts +15 -10
- package/esm/Subject.d.ts.map +1 -1
- package/esm/Subject.js +123 -21
- package/esm/Subject.js.map +1 -1
- package/esm/hold.d.ts +2 -2
- package/esm/hold.d.ts.map +1 -1
- package/esm/hold.js +5 -5
- package/esm/hold.js.map +1 -1
- package/esm/withEmitter.d.ts +2 -2
- package/esm/withEmitter.d.ts.map +1 -1
- package/esm/withEmitter.js +3 -3
- package/esm/withEmitter.js.map +1 -1
- package/package.json +1 -1
- package/src/Subject.test.ts +72 -5
- package/src/Subject.ts +162 -32
- package/src/hold.ts +5 -6
- package/src/withEmitter.test.ts +4 -4
- package/src/withEmitter.ts +5 -5
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":7179,"mtime":1667340789161,"results":"147","hashOfConfig":"76"},{"size":2466,"mtime":1667340877427,"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,14 +1,15 @@
|
|
|
1
1
|
import { Cause } from '@effect/core/io/Cause';
|
|
2
2
|
import * as Effect from '@effect/core/io/Effect';
|
|
3
|
+
import * as Ref from '@effect/core/io/Ref';
|
|
3
4
|
import { LazyArg } from '@tsplus/stdlib/data/Function';
|
|
4
5
|
import * as Maybe from '@tsplus/stdlib/data/Maybe';
|
|
5
|
-
import { Fx } from './Fx.js';
|
|
6
|
-
export interface Subject<E, A> extends
|
|
6
|
+
import { Emitter, Fx } from './Fx.js';
|
|
7
|
+
export interface Subject<E, A> extends Fx<never, E, A>, Emitter<never, E, A>, UnsafeEmitter<E, A> {
|
|
7
8
|
}
|
|
8
|
-
export interface
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
9
|
+
export interface UnsafeEmitter<E, A> {
|
|
10
|
+
readonly unsafeEmit: (a: A) => void;
|
|
11
|
+
readonly unsafeFailCause: (cause: Cause<E>) => void;
|
|
12
|
+
readonly unsafeEnd: () => void;
|
|
12
13
|
}
|
|
13
14
|
export declare namespace Subject {
|
|
14
15
|
const unsafeMake: <E, A>() => Subject<E, A>;
|
|
@@ -19,10 +20,14 @@ export interface HoldSubject<E, A> extends Subject<E, A> {
|
|
|
19
20
|
export declare namespace HoldSubject {
|
|
20
21
|
const unsafeMake: <E, A>() => HoldSubject<E, A>;
|
|
21
22
|
}
|
|
22
|
-
export interface
|
|
23
|
-
readonly get: Effect.Effect<never, never, A>;
|
|
23
|
+
export interface RefSubject<E, A> extends Subject<E, A>, Ref.Ref<A> {
|
|
24
24
|
}
|
|
25
|
-
export declare namespace
|
|
26
|
-
const unsafeMake: <E, A>(initial: LazyArg<A>) =>
|
|
25
|
+
export declare namespace RefSubject {
|
|
26
|
+
const unsafeMake: <E, A>(initial: LazyArg<A>) => RefSubject<E, A>;
|
|
27
|
+
}
|
|
28
|
+
export interface SynchronizedSubject<E, A> extends RefSubject<E, A>, Ref.Ref.Synchronized<A> {
|
|
29
|
+
}
|
|
30
|
+
export declare namespace SynchronizedSubject {
|
|
31
|
+
const unsafeMake: <E, A>(initial: LazyArg<A>) => SynchronizedSubject<E, A>;
|
|
27
32
|
}
|
|
28
33
|
//# sourceMappingURL=Subject.d.ts.map
|
package/cjs/Subject.d.ts.map
CHANGED
|
@@ -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;
|
|
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;AAChD,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAA;AAK1C,OAAO,EAAE,OAAO,EAAQ,MAAM,8BAA8B,CAAA;AAC5D,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAA;AAElD,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAKrC,MAAM,WAAW,OAAO,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC;CAAG;AAEpG,MAAM,WAAW,aAAa,CAAC,CAAC,EAAE,CAAC;IACjC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAA;IACnC,QAAQ,CAAC,eAAe,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAA;IACnD,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,CAAA;CAC/B;AAQD,yBAAiB,OAAO,CAAC;IAChB,MAAM,UAAU,2BAatB,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,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;CAC1D;AAED,yBAAiB,WAAW,CAAC;IACpB,MAAM,UAAU,+BActB,CAAA;CACF;AAED,MAAM,WAAW,UAAU,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;CAAG;AAEtE,yBAAiB,UAAU,CAAC;IACnB,MAAM,UAAU,iDA+BtB,CAAA;CACF;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;CAAG;AAE/F,yBAAiB,mBAAmB,CAAC;IAC5B,MAAM,UAAU,0DAgBtB,CAAA;CACF"}
|
package/cjs/Subject.js
CHANGED
|
@@ -23,22 +23,36 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
26
|
+
exports.SynchronizedSubject = exports.RefSubject = 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");
|
|
30
|
+
const SynchronizedInternal_1 = require("@effect/core/io/Ref/operations/_internal/SynchronizedInternal");
|
|
31
|
+
const TSemaphore = __importStar(require("@effect/core/stm/TSemaphore"));
|
|
28
32
|
const Function_1 = require("@fp-ts/data/Function");
|
|
33
|
+
const Function_2 = require("@tsplus/stdlib/data/Function");
|
|
29
34
|
const Maybe = __importStar(require("@tsplus/stdlib/data/Maybe"));
|
|
30
35
|
const fromEffect_js_1 = require("./fromEffect.js");
|
|
31
36
|
const hold_js_1 = require("./hold.js");
|
|
32
37
|
const multicast_js_1 = require("./multicast.js");
|
|
38
|
+
const FX_BRANDING = {
|
|
39
|
+
_R: () => void 0,
|
|
40
|
+
_E: () => void 0,
|
|
41
|
+
_A: () => void 0,
|
|
42
|
+
};
|
|
33
43
|
var Subject;
|
|
34
44
|
(function (Subject) {
|
|
35
45
|
Subject.unsafeMake = () => {
|
|
36
46
|
const m = new multicast_js_1.Multicast(fromEffect_js_1.never);
|
|
37
47
|
return {
|
|
48
|
+
...FX_BRANDING,
|
|
38
49
|
run: m.run.bind(m),
|
|
39
|
-
emit:
|
|
40
|
-
failCause:
|
|
41
|
-
end:
|
|
50
|
+
emit: m.emit.bind(m),
|
|
51
|
+
failCause: m.failCause.bind(m),
|
|
52
|
+
end: m.end,
|
|
53
|
+
unsafeEmit: (a) => Effect.unsafeRunAsync(m.emit(a)),
|
|
54
|
+
unsafeFailCause: (c) => Effect.unsafeRunAsync(m.failCause(c)),
|
|
55
|
+
unsafeEnd: () => Effect.unsafeRunAsync(m.end),
|
|
42
56
|
};
|
|
43
57
|
};
|
|
44
58
|
})(Subject = exports.Subject || (exports.Subject = {}));
|
|
@@ -47,29 +61,117 @@ var HoldSubject;
|
|
|
47
61
|
HoldSubject.unsafeMake = () => {
|
|
48
62
|
const h = new hold_js_1.Hold(fromEffect_js_1.never);
|
|
49
63
|
return {
|
|
50
|
-
|
|
51
|
-
get: h.get,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
64
|
+
...FX_BRANDING,
|
|
65
|
+
get: Effect.sync(() => h.value.get),
|
|
66
|
+
run: (e) => h.run(e),
|
|
67
|
+
emit: (a) => h.emit(a),
|
|
68
|
+
failCause: (e) => h.failCause(e),
|
|
69
|
+
end: h.end,
|
|
70
|
+
unsafeEmit: (a) => Effect.unsafeRunAsync(h.emit(a)),
|
|
71
|
+
unsafeFailCause: (c) => Effect.unsafeRunAsync(h.failCause(c)),
|
|
72
|
+
unsafeEnd: () => Effect.unsafeRunAsync(h.end),
|
|
55
73
|
};
|
|
56
74
|
};
|
|
57
75
|
})(HoldSubject = exports.HoldSubject || (exports.HoldSubject = {}));
|
|
58
|
-
var
|
|
59
|
-
(function (
|
|
60
|
-
|
|
76
|
+
var RefSubject;
|
|
77
|
+
(function (RefSubject) {
|
|
78
|
+
RefSubject.unsafeMake = (initial) => {
|
|
61
79
|
const h = new hold_js_1.Hold(fromEffect_js_1.never);
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
//
|
|
65
|
-
h.
|
|
80
|
+
const maybeRef = new AtomicInternal_1.AtomicInternal(new AtomicInternal_1.UnsafeAPI(h.value));
|
|
81
|
+
const ref = emitRefChanges(invmapRef(maybeRef, Maybe.getOrElse(initial), Maybe.some), h);
|
|
82
|
+
// Ensure there is always a value in the Ref
|
|
83
|
+
h.value.set(Maybe.some(initial()));
|
|
66
84
|
return {
|
|
85
|
+
...FX_BRANDING,
|
|
86
|
+
[Ref.RefSym]: Ref.RefSym,
|
|
87
|
+
[Ref._A]: (_) => _,
|
|
88
|
+
get: ref.get,
|
|
89
|
+
modify: (f) => ref.modify(f),
|
|
90
|
+
set: (a) => ref.set(a),
|
|
91
|
+
getAndSet: (a) => ref.getAndSet(a),
|
|
92
|
+
getAndUpdate: (f) => ref.getAndUpdate(f),
|
|
93
|
+
getAndUpdateSome: (f) => ref.getAndUpdateSome(f),
|
|
94
|
+
modifySome: (fallback, f) => ref.modifySome(fallback, f),
|
|
95
|
+
update: (f) => ref.update(f),
|
|
96
|
+
updateAndGet: (f) => ref.updateAndGet(f),
|
|
97
|
+
updateSome: (f) => ref.updateSome(f),
|
|
98
|
+
updateSomeAndGet: (f) => ref.updateSomeAndGet(f),
|
|
67
99
|
run: h.run.bind(h),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
100
|
+
emit: h.emit.bind(h),
|
|
101
|
+
failCause: h.failCause.bind(h),
|
|
102
|
+
end: h.end,
|
|
103
|
+
unsafeEmit: (a) => Effect.unsafeRunAsync(h.emit(a)),
|
|
104
|
+
unsafeFailCause: (c) => Effect.unsafeRunAsync(h.failCause(c)),
|
|
105
|
+
unsafeEnd: () => Effect.unsafeRunAsync(h.end),
|
|
72
106
|
};
|
|
73
107
|
};
|
|
74
|
-
})(
|
|
108
|
+
})(RefSubject = exports.RefSubject || (exports.RefSubject = {}));
|
|
109
|
+
var SynchronizedSubject;
|
|
110
|
+
(function (SynchronizedSubject) {
|
|
111
|
+
SynchronizedSubject.unsafeMake = (initial) => {
|
|
112
|
+
const subject = RefSubject.unsafeMake(initial);
|
|
113
|
+
const synchronizedRef = new SynchronizedInternal_1.SynchronizedInternal(subject, TSemaphore.unsafeMake(1));
|
|
114
|
+
return {
|
|
115
|
+
...subject,
|
|
116
|
+
[Ref.SynchronizedSym]: Ref.SynchronizedSym,
|
|
117
|
+
modifyEffect: (f) => synchronizedRef.modifyEffect(f),
|
|
118
|
+
modifySomeEffect: (fallback, f) => synchronizedRef.modifySomeEffect(fallback, f),
|
|
119
|
+
getAndUpdateEffect: (f) => synchronizedRef.getAndUpdateEffect(f),
|
|
120
|
+
getAndUpdateSomeEffect: (f) => synchronizedRef.getAndUpdateSomeEffect(f),
|
|
121
|
+
updateEffect: (f) => synchronizedRef.updateEffect(f),
|
|
122
|
+
updateAndGetEffect: (f) => synchronizedRef.updateAndGetEffect(f),
|
|
123
|
+
updateSomeEffect: (f) => synchronizedRef.updateSomeEffect(f),
|
|
124
|
+
updateSomeAndGetEffect: (f) => synchronizedRef.updateSomeAndGetEffect(f),
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
})(SynchronizedSubject = exports.SynchronizedSubject || (exports.SynchronizedSubject = {}));
|
|
128
|
+
function invmapRef(ref, to, from) {
|
|
129
|
+
const get = (0, Function_2.pipe)(ref.get, Effect.map(to));
|
|
130
|
+
const modify = (f) => ref.modify((a) => {
|
|
131
|
+
const [b, c] = f(to(a));
|
|
132
|
+
return [b, from(c)];
|
|
133
|
+
});
|
|
134
|
+
const set = (0, Function_1.flow)(from, ref.set);
|
|
135
|
+
const getAndSet = (0, Function_1.flow)(from, ref.getAndSet, Effect.map(to));
|
|
136
|
+
const getAndUpdate = (f) => (0, Function_2.pipe)(ref.getAndUpdate((0, Function_1.flow)(to, f, from)), Effect.map(to));
|
|
137
|
+
const getAndUpdateSome = (f) => (0, Function_2.pipe)(ref.getAndUpdateSome((0, Function_1.flow)(to, f, Maybe.map(from))), Effect.map(to));
|
|
138
|
+
const modifySome = (fallback, f) => ref.modifySome(fallback, (a) => (0, Function_2.pipe)(a, to, f, Maybe.map(([c, b]) => [c, from(b)])));
|
|
139
|
+
const update = (f) => ref.update((0, Function_1.flow)(to, f, from));
|
|
140
|
+
const updateAndGet = (f) => (0, Function_2.pipe)(ref.updateAndGet((0, Function_1.flow)(to, f, from)), Effect.map(to));
|
|
141
|
+
const updateSome = (f) => ref.updateSome((0, Function_1.flow)(to, f, Maybe.map(from)));
|
|
142
|
+
const updateSomeAndGet = (f) => (0, Function_2.pipe)(ref.updateSomeAndGet((0, Function_1.flow)(to, f, Maybe.map(from))), Effect.map(to));
|
|
143
|
+
return {
|
|
144
|
+
[Ref.RefSym]: Ref.RefSym,
|
|
145
|
+
[Ref._A]: (_) => _,
|
|
146
|
+
get,
|
|
147
|
+
modify,
|
|
148
|
+
set,
|
|
149
|
+
getAndSet,
|
|
150
|
+
getAndUpdate,
|
|
151
|
+
getAndUpdateSome,
|
|
152
|
+
modifySome,
|
|
153
|
+
update,
|
|
154
|
+
updateAndGet,
|
|
155
|
+
updateSome,
|
|
156
|
+
updateSomeAndGet,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function emitRefChanges(ref, subject) {
|
|
160
|
+
const andEmitLatestValue = Effect.zipLeft((0, Function_2.pipe)(ref.get, Effect.flatMap(subject.emit)));
|
|
161
|
+
return {
|
|
162
|
+
[Ref.RefSym]: Ref.RefSym,
|
|
163
|
+
[Ref._A]: (_) => _,
|
|
164
|
+
get: ref.get,
|
|
165
|
+
modify: (f) => (0, Function_2.pipe)(ref.modify(f), andEmitLatestValue),
|
|
166
|
+
set: (a) => (0, Function_2.pipe)(ref.set(a), andEmitLatestValue),
|
|
167
|
+
getAndSet: (a) => (0, Function_2.pipe)(ref.getAndSet(a), andEmitLatestValue),
|
|
168
|
+
getAndUpdate: (f) => (0, Function_2.pipe)(ref.getAndUpdate(f), andEmitLatestValue),
|
|
169
|
+
getAndUpdateSome: (f) => (0, Function_2.pipe)(ref.getAndUpdateSome(f), andEmitLatestValue),
|
|
170
|
+
modifySome: (fallback, f) => (0, Function_2.pipe)(ref.modifySome(fallback, f), andEmitLatestValue),
|
|
171
|
+
update: (f) => (0, Function_2.pipe)(ref.update(f), andEmitLatestValue),
|
|
172
|
+
updateAndGet: (f) => (0, Function_2.pipe)(ref.updateAndGet(f), andEmitLatestValue),
|
|
173
|
+
updateSome: (f) => (0, Function_2.pipe)(ref.updateSome(f), andEmitLatestValue),
|
|
174
|
+
updateSomeAndGet: (f) => (0, Function_2.pipe)(ref.updateSomeAndGet(f), andEmitLatestValue),
|
|
175
|
+
};
|
|
176
|
+
}
|
|
75
177
|
//# sourceMappingURL=Subject.js.map
|
package/cjs/Subject.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subject.js","sourceRoot":"","sources":["../src/Subject.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+DAAgD;AAChD,mDAA2C;
|
|
1
|
+
{"version":3,"file":"Subject.js","sourceRoot":"","sources":["../src/Subject.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,+DAAgD;AAChD,yDAA0C;AAC1C,4FAAmG;AACnG,wGAAo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/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
|
-
|
|
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;
|
|
1
|
+
{"version":3,"file":"hold.d.ts","sourceRoot":"","sources":["../src/hold.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,KA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,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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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,mDAA2C;AAC3C,uEAAwD;AACxD,iEAAkD;AAGlD,iDAA6D;AAE7D,SAAgB,IAAI,CAAU,EAAe;IAC3C,OAAO,IAAI,IAAI,CAAC,EAAE,CAAC,CAAA;AACrB,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AC,CAAC,CAAA;IACJ,CAAC;IAES,YAAY,CAAC,OAA+B;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"}
|
package/cjs/withEmitter.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Effect from '@effect/core/io/Effect';
|
|
2
2
|
import { Fx } from './Fx.js';
|
|
3
|
-
import type {
|
|
4
|
-
export declare function withEmitter<R, E, A>(f: (emitter:
|
|
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
|
package/cjs/withEmitter.d.ts.map
CHANGED
|
@@ -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,
|
|
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"}
|