@@ -14,8 +14,8 @@ import type {
1414} from '@npmcli/arborist'
1515
1616export type ArboristOptions = BaseArboristOptions & {
17- npmCommand ?: string
18- npmVersion ?: string
17+ npmCommand ?: string | undefined
18+ npmVersion ?: string | undefined
1919}
2020
2121export type ArboristClass = ArboristInstance & {
@@ -37,10 +37,10 @@ export type ArboristInstance = Omit<
3737 actualTree ?: NodeClass | null | undefined
3838 diff : Diff | null
3939 idealTree ?: NodeClass | null | undefined
40- buildIdealTree ( options ?: BuildIdealTreeOptions ) : Promise < NodeClass >
41- loadActual ( options ?: ArboristOptions ) : Promise < NodeClass >
42- loadVirtual ( options ?: ArboristOptions ) : Promise < NodeClass >
43- reify ( options ?: ArboristReifyOptions ) : Promise < NodeClass >
40+ buildIdealTree ( options ?: BuildIdealTreeOptions | undefined ) : Promise < NodeClass >
41+ loadActual ( options ?: ArboristOptions | undefined ) : Promise < NodeClass >
42+ loadVirtual ( options ?: ArboristOptions | undefined ) : Promise < NodeClass >
43+ reify ( options ?: ArboristReifyOptions | undefined ) : Promise < NodeClass >
4444}
4545
4646export type ArboristReifyOptions = ReifyOptions & ArboristOptions
@@ -111,7 +111,7 @@ export type EdgeClass = Omit<
111111 get to ( ) : NodeClass | null
112112 new ( ...args : any ) : EdgeClass
113113 detach ( ) : void
114- reload ( hard ?: boolean ) : void
114+ reload ( hard ?: boolean | undefined ) : void
115115 satisfiedBy ( node : NodeClass ) : boolean
116116}
117117
@@ -178,9 +178,9 @@ export type NodeClass = Omit<
178178 new ( ...args : any ) : NodeClass
179179 addEdgeIn ( edge : EdgeClass ) : void
180180 addEdgeOut ( edge : EdgeClass ) : void
181- canDedupe ( preferDedupe ?: boolean ) : boolean
182- canReplace ( node : NodeClass , ignorePeers ?: string [ ] ) : boolean
183- canReplaceWith ( node : NodeClass , ignorePeers ?: string [ ] ) : boolean
181+ canDedupe ( preferDedupe ?: boolean | undefined ) : boolean
182+ canReplace ( node : NodeClass , ignorePeers ?: string [ ] | undefined ) : boolean
183+ canReplaceWith ( node : NodeClass , ignorePeers ?: string [ ] | undefined ) : boolean
184184 deleteEdgeIn ( edge : EdgeClass ) : void
185185 matches ( node : NodeClass ) : boolean
186186 recalculateOutEdgesOverrides ( ) : void
0 commit comments