Skip to content

Commit 570dea7

Browse files
committed
fix: add JSON type to PackageInfo
1 parent 14884c5 commit 570dea7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/shared-lib/src/package-manager/packageInfo.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ export namespace PackageInfo {
33
export enum Type {
44
SCAN = 'scan',
55
DEEPSCAN = 'deepScan',
6+
JSON = 'json',
67
OTHER = 'other',
78
}
89

9-
export type Any = FFProbeScan | FFProbeDeepScan | FFOther
10+
export type Any = FFProbeScan | FFProbeDeepScan | JSONDocument | FFOther
1011
export interface Base {
1112
type: Type
1213
payload: any
@@ -20,6 +21,12 @@ export namespace PackageInfo {
2021
type: Type.DEEPSCAN
2122
payload: FFProbeDeepScanInfo
2223
}
24+
25+
export interface JSONDocument extends Base {
26+
type: Type.JSON
27+
payload: unknown
28+
}
29+
2330
export interface FFOther extends Base {
2431
// placeholder
2532
type: Type.OTHER

0 commit comments

Comments
 (0)