@@ -48,11 +48,11 @@ export namespace System {
4848 export let queuedEffectsTail : IEffect | undefined = undefined ;
4949}
5050
51- export function startBatch ( ) {
51+ export function startBatch ( ) : void {
5252 System . batchDepth ++ ;
5353}
5454
55- export function endBatch ( ) {
55+ export function endBatch ( ) : void {
5656 System . batchDepth -- ;
5757 if ( System . batchDepth === 0 ) {
5858 while ( System . queuedEffects !== undefined ) {
@@ -73,7 +73,7 @@ export function endBatch() {
7373export namespace Link {
7474 let pool : Link | undefined = undefined ;
7575
76- export function get ( dep : Dependency , sub : Subscriber , nextDep : Link | undefined ) {
76+ export function get ( dep : Dependency , sub : Subscriber , nextDep : Link | undefined ) : Link {
7777 if ( pool !== undefined ) {
7878 const newLink = pool ;
7979 pool = newLink . nextDep ;
@@ -94,7 +94,7 @@ export namespace Link {
9494 }
9595 }
9696
97- export function release ( link : Link ) {
97+ export function release ( link : Link ) : void {
9898 const dep = link . dep ;
9999 const nextSub = link . nextSub ;
100100 const prevSub = link . prevSub ;
@@ -131,11 +131,11 @@ export namespace Dependency {
131131 /**
132132 * @deprecated Use `startTrack` instead.
133133 */
134- export function linkSubscriber ( dep : Dependency , sub : Subscriber ) {
134+ export function linkSubscriber ( dep : Dependency , sub : Subscriber ) : void {
135135 return link ( dep , sub ) ;
136136 }
137137
138- export function link ( dep : Dependency , sub : Subscriber ) {
138+ export function link ( dep : Dependency , sub : Subscriber ) : void {
139139 const depsTail = sub . depsTail ;
140140 const old = depsTail !== undefined
141141 ? depsTail . nextDep
@@ -166,7 +166,7 @@ export namespace Dependency {
166166 }
167167 }
168168
169- export function propagate ( subs : Link ) {
169+ export function propagate ( subs : Link ) : void {
170170 let link : Link | undefined = subs ;
171171 let dep = subs . dep ;
172172 let dirtyLevel = DirtyLevels . Dirty ;
@@ -282,7 +282,7 @@ export namespace Subscriber {
282282
283283 const system = System ;
284284
285- export function runInnerEffects ( link : Link | undefined ) {
285+ export function runInnerEffects ( link : Link | undefined ) : void {
286286 while ( link !== undefined ) {
287287 const dep = link . dep ;
288288 if ( 'notify' in dep ) {
@@ -292,7 +292,7 @@ export namespace Subscriber {
292292 }
293293 }
294294
295- export function resolveMaybeDirty ( sub : IComputed | IEffect , depth = 0 ) {
295+ export function resolveMaybeDirty ( sub : IComputed | IEffect , depth = 0 ) : void {
296296 let link = sub . deps ;
297297
298298 while ( link !== undefined ) {
@@ -327,7 +327,7 @@ export namespace Subscriber {
327327 }
328328 }
329329
330- export function resolveMaybeDirtyNonRecursive ( sub : IComputed | IEffect ) {
330+ export function resolveMaybeDirtyNonRecursive ( sub : IComputed | IEffect ) : void {
331331 let link = sub . deps ;
332332 let remaining = 0 ;
333333
@@ -402,18 +402,18 @@ export namespace Subscriber {
402402 /**
403403 * @deprecated Use `startTrack` instead.
404404 */
405- export function startTrackDependencies ( sub : Subscriber ) {
405+ export function startTrackDependencies ( sub : Subscriber ) : Subscriber | undefined {
406406 return startTrack ( sub ) ;
407407 }
408408
409409 /**
410410 * @deprecated Use `endTrack` instead.
411411 */
412- export function endTrackDependencies ( sub : Subscriber , prevSub : Subscriber | undefined ) {
412+ export function endTrackDependencies ( sub : Subscriber , prevSub : Subscriber | undefined ) : void {
413413 return endTrack ( sub , prevSub ) ;
414414 }
415415
416- export function startTrack ( sub : Subscriber ) {
416+ export function startTrack ( sub : Subscriber ) : Subscriber | undefined {
417417 const newTrackId = system . lastTrackId + 1 ;
418418 const prevSub = system . activeSub ;
419419
@@ -428,7 +428,7 @@ export namespace Subscriber {
428428 return prevSub ;
429429 }
430430
431- export function endTrack ( sub : Subscriber , prevSub : Subscriber | undefined ) {
431+ export function endTrack ( sub : Subscriber , prevSub : Subscriber | undefined ) : void {
432432 if ( prevSub !== undefined ) {
433433 system . activeSub = prevSub ;
434434 system . activeTrackId = prevSub . trackId ;
@@ -450,7 +450,7 @@ export namespace Subscriber {
450450 sub . trackId = - sub . trackId ;
451451 }
452452
453- export function clearTrack ( link : Link ) {
453+ export function clearTrack ( link : Link ) : void {
454454 do {
455455 const dep = link . dep ;
456456 const nextDep = link . nextDep ;
0 commit comments