@@ -29,6 +29,9 @@ declare type NonOptionalKeys<T> = {
2929declare type RecordOptionalNodeToValue < T > = {
3030 [ K in NonOptionalKeys < T > ] : NodeToValue < T [ K ] > ;
3131} ;
32+ interface FetchInfoOptions {
33+ ignoreManualDepReadyStatus ?: boolean ;
34+ }
3235/**
3336 * the base structure for evaluate
3437 */
@@ -58,7 +61,7 @@ interface Node<T> {
5861 * FIXME: this should be a protected function.
5962 */
6063 filterNodes ( exposingNodes : Record < string , Node < unknown > > ) : Map < Node < unknown > , Set < string > > ;
61- fetchInfo ( exposingNodes : Record < string , Node < unknown > > ) : FetchInfo ;
64+ fetchInfo ( exposingNodes : Record < string , Node < unknown > > , options ?: FetchInfoOptions ) : FetchInfo ;
6265}
6366declare abstract class AbstractNode < T > implements Node < T > {
6467 readonly type : string ;
@@ -142,7 +145,7 @@ declare class FunctionNode<T, OutputType> extends AbstractNode<OutputType> {
142145 justEval ( exposingNodes : Record < string , Node < unknown > > , methods ?: EvalMethods ) : OutputType ;
143146 getChildren ( ) : Node < unknown > [ ] ;
144147 dependValues ( ) : Record < string , unknown > ;
145- fetchInfo ( exposingNodes : Record < string , Node < unknown > > ) : FetchInfo ;
148+ fetchInfo ( exposingNodes : Record < string , Node < unknown > > , options ?: FetchInfoOptions ) : FetchInfo ;
146149}
147150declare function withFunction < T , OutputType > (
148151 child : Node < T > ,
@@ -195,7 +198,7 @@ declare class CodeNode extends AbstractNode<ValueAndMsg<unknown>> {
195198 ) : ValueAndMsg < unknown > ;
196199 getChildren ( ) : Node < unknown > [ ] ;
197200 dependValues ( ) : Record < string , unknown > ;
198- fetchInfo ( exposingNodes : Record < string , Node < unknown > > ) : FetchInfo ;
201+ fetchInfo ( exposingNodes : Record < string , Node < unknown > > , options ?: FetchInfoOptions ) : FetchInfo ;
199202}
200203/**
201204 * generate node for unevaledValue
@@ -209,8 +212,9 @@ declare function fromUnevaledValue(
209212 */
210213declare class FetchCheckNode extends AbstractNode < FetchInfo > {
211214 readonly child : Node < unknown > ;
215+ readonly options ?: FetchInfoOptions | undefined ;
212216 readonly type = "fetchCheck" ;
213- constructor ( child : Node < unknown > ) ;
217+ constructor ( child : Node < unknown > , options ?: FetchInfoOptions | undefined ) ;
214218 filterNodes ( exposingNodes : Record < string , Node < unknown > > ) : Map < Node < unknown > , Set < string > > ;
215219 justEval ( exposingNodes : Record < string , Node < unknown > > ) : FetchInfo ;
216220 getChildren ( ) : Node < unknown > [ ] ;
@@ -238,7 +242,10 @@ declare class RecordNode<T extends Record<string, Node<unknown>>> extends Abstra
238242 ) : RecordNodeToValue < T > ;
239243 getChildren ( ) : Node < unknown > [ ] ;
240244 dependValues ( ) : Record < string , unknown > ;
241- fetchInfo ( exposingNodes : Record < string , Node < unknown > > ) : {
245+ fetchInfo (
246+ exposingNodes : Record < string , Node < unknown > > ,
247+ options ?: FetchInfoOptions
248+ ) : {
242249 isFetching : boolean ;
243250 ready : boolean ;
244251 } ;
@@ -799,6 +806,7 @@ export {
799806 ExtraNodeType ,
800807 FetchCheckNode ,
801808 FetchInfo ,
809+ FetchInfoOptions ,
802810 FunctionNode ,
803811 MultiBaseComp ,
804812 MultiChangeAction ,
0 commit comments