Skip to content

Commit 3a44545

Browse files
committed
Add more Arborist types
1 parent 9af59d6 commit 3a44545

File tree

1 file changed

+12
-1
lines changed
  • src/shadow/npm/arborist/lib/arborist

1 file changed

+12
-1
lines changed

src/shadow/npm/arborist/lib/arborist/types.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type {
55
Arborist as BaseArborist,
66
AuditReport as BaseAuditReport,
77
Diff as BaseDiff,
8+
BuildIdealTreeOptions,
89
ReifyOptions
910
} from '@npmcli/arborist'
1011

@@ -14,12 +15,22 @@ export type ArboristClass = ArboristInstance & {
1415

1516
export type ArboristInstance = Omit<
1617
typeof BaseArborist,
17-
'actualTree' | 'auditReport' | 'diff' | 'idealTree' | 'reify'
18+
| 'actualTree'
19+
| 'auditReport'
20+
| 'buildIdealTree'
21+
| 'diff'
22+
| 'idealTree'
23+
| 'loadActual'
24+
| 'loadVirtual'
25+
| 'reify'
1826
> & {
1927
auditReport?: AuditReportInstance | null | undefined
2028
actualTree?: SafeNode | null | undefined
2129
diff: Diff | null
2230
idealTree?: SafeNode | null | undefined
31+
buildIdealTree(options?: BuildIdealTreeOptions): Promise<SafeNode>
32+
loadActual(options?: ArboristOptions): Promise<SafeNode>
33+
loadVirtual(options?: ArboristOptions): Promise<SafeNode>
2334
reify(options?: ArboristReifyOptions): Promise<SafeNode>
2435
}
2536

0 commit comments

Comments
 (0)