datocms-plugin-sdk 2.0.12 → 2.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/manifest.json CHANGED
@@ -259,6 +259,16 @@
259
259
  "lineNumber": 19
260
260
  },
261
261
  "type": "string"
262
+ },
263
+ "location": {
264
+ "comment": {
265
+ "markdownText": "Current page location."
266
+ },
267
+ "location": {
268
+ "filePath": "src/hooks/renderPage.ts",
269
+ "lineNumber": 22
270
+ },
271
+ "type": "{\n pathname: string;\n search: string;\n hash: string;\n }"
262
272
  }
263
273
  }
264
274
  }
@@ -2922,13 +2932,23 @@
2922
2932
  },
2923
2933
  "type": "string"
2924
2934
  },
2935
+ "isEnvironmentPrimary": {
2936
+ "comment": {
2937
+ "markdownText": "Whether the current environment is the primary one."
2938
+ },
2939
+ "location": {
2940
+ "filePath": "src/ctx/base.ts",
2941
+ "lineNumber": 64
2942
+ },
2943
+ "type": "boolean"
2944
+ },
2925
2945
  "owner": {
2926
2946
  "comment": {
2927
2947
  "markdownText": "The account/organization that is the project owner."
2928
2948
  },
2929
2949
  "location": {
2930
2950
  "filePath": "src/ctx/base.ts",
2931
- "lineNumber": 64
2951
+ "lineNumber": 67
2932
2952
  },
2933
2953
  "type": "Account | Organization"
2934
2954
  },
@@ -2939,7 +2959,7 @@
2939
2959
  },
2940
2960
  "location": {
2941
2961
  "filePath": "src/ctx/base.ts",
2942
- "lineNumber": 72
2962
+ "lineNumber": 75
2943
2963
  },
2944
2964
  "type": "Account | undefined"
2945
2965
  },
@@ -2949,7 +2969,7 @@
2949
2969
  },
2950
2970
  "location": {
2951
2971
  "filePath": "src/ctx/base.ts",
2952
- "lineNumber": 78
2972
+ "lineNumber": 81
2953
2973
  },
2954
2974
  "type": "{\n /** Preferred locale */\n locale: string;\n }"
2955
2975
  },
@@ -2959,7 +2979,7 @@
2959
2979
  },
2960
2980
  "location": {
2961
2981
  "filePath": "src/ctx/base.ts",
2962
- "lineNumber": 84
2982
+ "lineNumber": 87
2963
2983
  },
2964
2984
  "type": "Theme"
2965
2985
  }
@@ -2977,7 +2997,7 @@
2977
2997
  },
2978
2998
  "location": {
2979
2999
  "filePath": "src/ctx/base.ts",
2980
- "lineNumber": 94
3000
+ "lineNumber": 97
2981
3001
  },
2982
3002
  "type": "Partial<Record<string, ItemType>>"
2983
3003
  },
@@ -2987,7 +3007,7 @@
2987
3007
  },
2988
3008
  "location": {
2989
3009
  "filePath": "src/ctx/base.ts",
2990
- "lineNumber": 101
3010
+ "lineNumber": 104
2991
3011
  },
2992
3012
  "type": "Partial<Record<string, Field>>"
2993
3013
  },
@@ -2997,7 +3017,7 @@
2997
3017
  },
2998
3018
  "location": {
2999
3019
  "filePath": "src/ctx/base.ts",
3000
- "lineNumber": 108
3020
+ "lineNumber": 111
3001
3021
  },
3002
3022
  "type": "Partial<Record<string, Fieldset>>"
3003
3023
  },
@@ -3007,7 +3027,7 @@
3007
3027
  },
3008
3028
  "location": {
3009
3029
  "filePath": "src/ctx/base.ts",
3010
- "lineNumber": 115
3030
+ "lineNumber": 118
3011
3031
  },
3012
3032
  "type": "Partial<Record<string, User>>"
3013
3033
  },
@@ -3017,7 +3037,7 @@
3017
3037
  },
3018
3038
  "location": {
3019
3039
  "filePath": "src/ctx/base.ts",
3020
- "lineNumber": 122
3040
+ "lineNumber": 125
3021
3041
  },
3022
3042
  "type": "Partial<Record<string, SsoUser>>"
3023
3043
  }
@@ -3038,7 +3058,7 @@
3038
3058
  },
3039
3059
  "location": {
3040
3060
  "filePath": "src/ctx/base.ts",
3041
- "lineNumber": 165
3061
+ "lineNumber": 168
3042
3062
  },
3043
3063
  "type": "(itemTypeId: string) => Promise<Field[]>"
3044
3064
  },
@@ -3049,7 +3069,7 @@
3049
3069
  },
3050
3070
  "location": {
3051
3071
  "filePath": "src/ctx/base.ts",
3052
- "lineNumber": 184
3072
+ "lineNumber": 187
3053
3073
  },
3054
3074
  "type": "(itemTypeId: string) => Promise<Fieldset[]>"
3055
3075
  },
@@ -3060,7 +3080,7 @@
3060
3080
  },
3061
3081
  "location": {
3062
3082
  "filePath": "src/ctx/base.ts",
3063
- "lineNumber": 201
3083
+ "lineNumber": 204
3064
3084
  },
3065
3085
  "type": "() => Promise<Field[]>"
3066
3086
  },
@@ -3071,7 +3091,7 @@
3071
3091
  },
3072
3092
  "location": {
3073
3093
  "filePath": "src/ctx/base.ts",
3074
- "lineNumber": 214
3094
+ "lineNumber": 217
3075
3095
  },
3076
3096
  "type": "() => Promise<User[]>"
3077
3097
  },
@@ -3082,7 +3102,7 @@
3082
3102
  },
3083
3103
  "location": {
3084
3104
  "filePath": "src/ctx/base.ts",
3085
- "lineNumber": 227
3105
+ "lineNumber": 230
3086
3106
  },
3087
3107
  "type": "() => Promise<SsoUser[]>"
3088
3108
  }
@@ -3101,7 +3121,7 @@
3101
3121
  },
3102
3122
  "location": {
3103
3123
  "filePath": "src/ctx/base.ts",
3104
- "lineNumber": 249
3124
+ "lineNumber": 252
3105
3125
  },
3106
3126
  "type": "(params: Record<string, unknown>) => Promise<void>"
3107
3127
  },
@@ -3112,7 +3132,7 @@
3112
3132
  },
3113
3133
  "location": {
3114
3134
  "filePath": "src/ctx/base.ts",
3115
- "lineNumber": 300
3135
+ "lineNumber": 303
3116
3136
  },
3117
3137
  "type": "(\n fieldId: string,\n changes: FieldAppearanceChange[],\n ) => Promise<void>"
3118
3138
  }
@@ -3131,7 +3151,7 @@
3131
3151
  },
3132
3152
  "location": {
3133
3153
  "filePath": "src/ctx/base.ts",
3134
- "lineNumber": 405
3154
+ "lineNumber": 408
3135
3155
  },
3136
3156
  "type": "(message: string) => Promise<void>"
3137
3157
  },
@@ -3142,7 +3162,7 @@
3142
3162
  },
3143
3163
  "location": {
3144
3164
  "filePath": "src/ctx/base.ts",
3145
- "lineNumber": 420
3165
+ "lineNumber": 423
3146
3166
  },
3147
3167
  "type": "(message: string) => Promise<void>"
3148
3168
  },
@@ -3153,7 +3173,7 @@
3153
3173
  },
3154
3174
  "location": {
3155
3175
  "filePath": "src/ctx/base.ts",
3156
- "lineNumber": 444
3176
+ "lineNumber": 447
3157
3177
  },
3158
3178
  "type": "<CtaValue = unknown>(\n toast: Toast<CtaValue>,\n ) => Promise<CtaValue | null>"
3159
3179
  }
@@ -3172,7 +3192,7 @@
3172
3192
  },
3173
3193
  "location": {
3174
3194
  "filePath": "src/ctx/base.ts",
3175
- "lineNumber": 330
3195
+ "lineNumber": 333
3176
3196
  },
3177
3197
  "type": "(itemTypeId: string) => Promise<Item | null>"
3178
3198
  },
@@ -3183,7 +3203,7 @@
3183
3203
  },
3184
3204
  "location": {
3185
3205
  "filePath": "src/ctx/base.ts",
3186
- "lineNumber": 351
3206
+ "lineNumber": 354
3187
3207
  },
3188
3208
  "type": "{\n (\n itemTypeId: string,\n options: { multiple: true; initialLocationQuery?: ItemListLocationQuery },\n ): Promise<Item[] | null>;\n (\n itemTypeId: string,\n options?: {\n multiple: false;\n initialLocationQuery?: ItemListLocationQuery;\n },\n ): Promise<Item | null>;\n }"
3189
3209
  },
@@ -3194,7 +3214,7 @@
3194
3214
  },
3195
3215
  "location": {
3196
3216
  "filePath": "src/ctx/base.ts",
3197
- "lineNumber": 383
3217
+ "lineNumber": 386
3198
3218
  },
3199
3219
  "type": "(itemId: string) => Promise<Item | null>"
3200
3220
  }
@@ -3213,7 +3233,7 @@
3213
3233
  },
3214
3234
  "location": {
3215
3235
  "filePath": "src/ctx/base.ts",
3216
- "lineNumber": 471
3236
+ "lineNumber": 474
3217
3237
  },
3218
3238
  "type": "{\n (options: { multiple: true }): Promise<Upload[] | null>;\n (options?: { multiple: false }): Promise<Upload | null>;\n }"
3219
3239
  },
@@ -3224,7 +3244,7 @@
3224
3244
  },
3225
3245
  "location": {
3226
3246
  "filePath": "src/ctx/base.ts",
3227
- "lineNumber": 499
3247
+ "lineNumber": 502
3228
3248
  },
3229
3249
  "type": "(\n uploadId: string,\n ) => Promise<(Upload & { deleted?: true }) | null>"
3230
3250
  },
@@ -3235,7 +3255,7 @@
3235
3255
  },
3236
3256
  "location": {
3237
3257
  "filePath": "src/ctx/base.ts",
3238
- "lineNumber": 527
3258
+ "lineNumber": 530
3239
3259
  },
3240
3260
  "type": "(\n /** The \"single asset\" field structure */\n fileFieldValue: FileFieldValue,\n /** Shows metadata information for a specific locale */\n locale?: string,\n ) => Promise<FileFieldValue | null>"
3241
3261
  }
@@ -3254,7 +3274,7 @@
3254
3274
  },
3255
3275
  "location": {
3256
3276
  "filePath": "src/ctx/base.ts",
3257
- "lineNumber": 558
3277
+ "lineNumber": 561
3258
3278
  },
3259
3279
  "type": "(modal: Modal) => Promise<unknown>"
3260
3280
  },
@@ -3265,7 +3285,7 @@
3265
3285
  },
3266
3286
  "location": {
3267
3287
  "filePath": "src/ctx/base.ts",
3268
- "lineNumber": 595
3288
+ "lineNumber": 598
3269
3289
  },
3270
3290
  "type": "(options: ConfirmOptions) => Promise<unknown>"
3271
3291
  }
@@ -3284,7 +3304,7 @@
3284
3304
  },
3285
3305
  "location": {
3286
3306
  "filePath": "src/ctx/base.ts",
3287
- "lineNumber": 609
3307
+ "lineNumber": 612
3288
3308
  },
3289
3309
  "type": "(path: string) => Promise<void>"
3290
3310
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datocms-plugin-sdk",
3
- "version": "2.0.12",
3
+ "version": "2.0.13",
4
4
  "description": "DatoCMS Plugin SDK",
5
5
  "keywords": [
6
6
  "datocms",
@@ -45,5 +45,5 @@
45
45
  "glob": "^11.0.0",
46
46
  "typescript": "^5.6.2"
47
47
  },
48
- "gitHead": "e41647363072a1d6edec852553045af9ec797a1f"
48
+ "gitHead": "1420d4ce991da7c84da85b1b4e1375df19e156d7"
49
49
  }
package/src/ctx/base.ts CHANGED
@@ -60,6 +60,9 @@ type ProjectProperties = {
60
60
  /** The ID of the current environment */
61
61
  environment: string;
62
62
 
63
+ /** Whether the current environment is the primary one */
64
+ isEnvironmentPrimary: boolean;
65
+
63
66
  /** The account/organization that is the project owner */
64
67
  owner: Account | Organization;
65
68
 
@@ -17,6 +17,13 @@ export type RenderPageCtx = ImposedSizePluginFrameCtx<
17
17
  {
18
18
  /** The ID of the page that needs to be rendered */
19
19
  pageId: string;
20
+
21
+ /** Current page location */
22
+ location: {
23
+ pathname: string;
24
+ search: string;
25
+ hash: string;
26
+ };
20
27
  }
21
28
  >;
22
29
 
package/src/manifest.ts CHANGED
@@ -275,6 +275,16 @@ export const manifest: Manifest = {
275
275
  },
276
276
  type: 'string',
277
277
  },
278
+ location: {
279
+ comment: {
280
+ markdownText: 'Current page location.',
281
+ },
282
+ location: {
283
+ filePath: 'src/hooks/renderPage.ts',
284
+ lineNumber: 22,
285
+ },
286
+ type: '{\n pathname: string;\n search: string;\n hash: string;\n }',
287
+ },
278
288
  },
279
289
  },
280
290
  ],
@@ -3136,6 +3146,17 @@ export const manifest: Manifest = {
3136
3146
  },
3137
3147
  type: 'string',
3138
3148
  },
3149
+ isEnvironmentPrimary: {
3150
+ comment: {
3151
+ markdownText:
3152
+ 'Whether the current environment is the primary one.',
3153
+ },
3154
+ location: {
3155
+ filePath: 'src/ctx/base.ts',
3156
+ lineNumber: 64,
3157
+ },
3158
+ type: 'boolean',
3159
+ },
3139
3160
  owner: {
3140
3161
  comment: {
3141
3162
  markdownText:
@@ -3143,7 +3164,7 @@ export const manifest: Manifest = {
3143
3164
  },
3144
3165
  location: {
3145
3166
  filePath: 'src/ctx/base.ts',
3146
- lineNumber: 64,
3167
+ lineNumber: 67,
3147
3168
  },
3148
3169
  type: 'Account | Organization',
3149
3170
  },
@@ -3155,7 +3176,7 @@ export const manifest: Manifest = {
3155
3176
  },
3156
3177
  location: {
3157
3178
  filePath: 'src/ctx/base.ts',
3158
- lineNumber: 72,
3179
+ lineNumber: 75,
3159
3180
  },
3160
3181
  type: 'Account | undefined',
3161
3182
  },
@@ -3166,7 +3187,7 @@ export const manifest: Manifest = {
3166
3187
  },
3167
3188
  location: {
3168
3189
  filePath: 'src/ctx/base.ts',
3169
- lineNumber: 78,
3190
+ lineNumber: 81,
3170
3191
  },
3171
3192
  type: '{\n /** Preferred locale */\n locale: string;\n }',
3172
3193
  },
@@ -3177,7 +3198,7 @@ export const manifest: Manifest = {
3177
3198
  },
3178
3199
  location: {
3179
3200
  filePath: 'src/ctx/base.ts',
3180
- lineNumber: 84,
3201
+ lineNumber: 87,
3181
3202
  },
3182
3203
  type: 'Theme',
3183
3204
  },
@@ -3197,7 +3218,7 @@ export const manifest: Manifest = {
3197
3218
  },
3198
3219
  location: {
3199
3220
  filePath: 'src/ctx/base.ts',
3200
- lineNumber: 94,
3221
+ lineNumber: 97,
3201
3222
  },
3202
3223
  type: 'Partial<Record<string, ItemType>>',
3203
3224
  },
@@ -3208,7 +3229,7 @@ export const manifest: Manifest = {
3208
3229
  },
3209
3230
  location: {
3210
3231
  filePath: 'src/ctx/base.ts',
3211
- lineNumber: 101,
3232
+ lineNumber: 104,
3212
3233
  },
3213
3234
  type: 'Partial<Record<string, Field>>',
3214
3235
  },
@@ -3219,7 +3240,7 @@ export const manifest: Manifest = {
3219
3240
  },
3220
3241
  location: {
3221
3242
  filePath: 'src/ctx/base.ts',
3222
- lineNumber: 108,
3243
+ lineNumber: 111,
3223
3244
  },
3224
3245
  type: 'Partial<Record<string, Fieldset>>',
3225
3246
  },
@@ -3230,7 +3251,7 @@ export const manifest: Manifest = {
3230
3251
  },
3231
3252
  location: {
3232
3253
  filePath: 'src/ctx/base.ts',
3233
- lineNumber: 115,
3254
+ lineNumber: 118,
3234
3255
  },
3235
3256
  type: 'Partial<Record<string, User>>',
3236
3257
  },
@@ -3241,7 +3262,7 @@ export const manifest: Manifest = {
3241
3262
  },
3242
3263
  location: {
3243
3264
  filePath: 'src/ctx/base.ts',
3244
- lineNumber: 122,
3265
+ lineNumber: 125,
3245
3266
  },
3246
3267
  type: 'Partial<Record<string, SsoUser>>',
3247
3268
  },
@@ -3265,7 +3286,7 @@ export const manifest: Manifest = {
3265
3286
  },
3266
3287
  location: {
3267
3288
  filePath: 'src/ctx/base.ts',
3268
- lineNumber: 165,
3289
+ lineNumber: 168,
3269
3290
  },
3270
3291
  type: '(itemTypeId: string) => Promise<Field[]>',
3271
3292
  },
@@ -3278,7 +3299,7 @@ export const manifest: Manifest = {
3278
3299
  },
3279
3300
  location: {
3280
3301
  filePath: 'src/ctx/base.ts',
3281
- lineNumber: 184,
3302
+ lineNumber: 187,
3282
3303
  },
3283
3304
  type: '(itemTypeId: string) => Promise<Fieldset[]>',
3284
3305
  },
@@ -3291,7 +3312,7 @@ export const manifest: Manifest = {
3291
3312
  },
3292
3313
  location: {
3293
3314
  filePath: 'src/ctx/base.ts',
3294
- lineNumber: 201,
3315
+ lineNumber: 204,
3295
3316
  },
3296
3317
  type: '() => Promise<Field[]>',
3297
3318
  },
@@ -3304,7 +3325,7 @@ export const manifest: Manifest = {
3304
3325
  },
3305
3326
  location: {
3306
3327
  filePath: 'src/ctx/base.ts',
3307
- lineNumber: 214,
3328
+ lineNumber: 217,
3308
3329
  },
3309
3330
  type: '() => Promise<User[]>',
3310
3331
  },
@@ -3317,7 +3338,7 @@ export const manifest: Manifest = {
3317
3338
  },
3318
3339
  location: {
3319
3340
  filePath: 'src/ctx/base.ts',
3320
- lineNumber: 227,
3341
+ lineNumber: 230,
3321
3342
  },
3322
3343
  type: '() => Promise<SsoUser[]>',
3323
3344
  },
@@ -3339,7 +3360,7 @@ export const manifest: Manifest = {
3339
3360
  },
3340
3361
  location: {
3341
3362
  filePath: 'src/ctx/base.ts',
3342
- lineNumber: 249,
3363
+ lineNumber: 252,
3343
3364
  },
3344
3365
  type: '(params: Record<string, unknown>) => Promise<void>',
3345
3366
  },
@@ -3352,7 +3373,7 @@ export const manifest: Manifest = {
3352
3373
  },
3353
3374
  location: {
3354
3375
  filePath: 'src/ctx/base.ts',
3355
- lineNumber: 300,
3376
+ lineNumber: 303,
3356
3377
  },
3357
3378
  type: '(\n fieldId: string,\n changes: FieldAppearanceChange[],\n ) => Promise<void>',
3358
3379
  },
@@ -3374,7 +3395,7 @@ export const manifest: Manifest = {
3374
3395
  },
3375
3396
  location: {
3376
3397
  filePath: 'src/ctx/base.ts',
3377
- lineNumber: 405,
3398
+ lineNumber: 408,
3378
3399
  },
3379
3400
  type: '(message: string) => Promise<void>',
3380
3401
  },
@@ -3387,7 +3408,7 @@ export const manifest: Manifest = {
3387
3408
  },
3388
3409
  location: {
3389
3410
  filePath: 'src/ctx/base.ts',
3390
- lineNumber: 420,
3411
+ lineNumber: 423,
3391
3412
  },
3392
3413
  type: '(message: string) => Promise<void>',
3393
3414
  },
@@ -3400,7 +3421,7 @@ export const manifest: Manifest = {
3400
3421
  },
3401
3422
  location: {
3402
3423
  filePath: 'src/ctx/base.ts',
3403
- lineNumber: 444,
3424
+ lineNumber: 447,
3404
3425
  },
3405
3426
  type: '<CtaValue = unknown>(\n toast: Toast<CtaValue>,\n ) => Promise<CtaValue | null>',
3406
3427
  },
@@ -3422,7 +3443,7 @@ export const manifest: Manifest = {
3422
3443
  },
3423
3444
  location: {
3424
3445
  filePath: 'src/ctx/base.ts',
3425
- lineNumber: 330,
3446
+ lineNumber: 333,
3426
3447
  },
3427
3448
  type: '(itemTypeId: string) => Promise<Item | null>',
3428
3449
  },
@@ -3435,7 +3456,7 @@ export const manifest: Manifest = {
3435
3456
  },
3436
3457
  location: {
3437
3458
  filePath: 'src/ctx/base.ts',
3438
- lineNumber: 351,
3459
+ lineNumber: 354,
3439
3460
  },
3440
3461
  type: '{\n (\n itemTypeId: string,\n options: { multiple: true; initialLocationQuery?: ItemListLocationQuery },\n ): Promise<Item[] | null>;\n (\n itemTypeId: string,\n options?: {\n multiple: false;\n initialLocationQuery?: ItemListLocationQuery;\n },\n ): Promise<Item | null>;\n }',
3441
3462
  },
@@ -3448,7 +3469,7 @@ export const manifest: Manifest = {
3448
3469
  },
3449
3470
  location: {
3450
3471
  filePath: 'src/ctx/base.ts',
3451
- lineNumber: 383,
3472
+ lineNumber: 386,
3452
3473
  },
3453
3474
  type: '(itemId: string) => Promise<Item | null>',
3454
3475
  },
@@ -3470,7 +3491,7 @@ export const manifest: Manifest = {
3470
3491
  },
3471
3492
  location: {
3472
3493
  filePath: 'src/ctx/base.ts',
3473
- lineNumber: 471,
3494
+ lineNumber: 474,
3474
3495
  },
3475
3496
  type: '{\n (options: { multiple: true }): Promise<Upload[] | null>;\n (options?: { multiple: false }): Promise<Upload | null>;\n }',
3476
3497
  },
@@ -3483,7 +3504,7 @@ export const manifest: Manifest = {
3483
3504
  },
3484
3505
  location: {
3485
3506
  filePath: 'src/ctx/base.ts',
3486
- lineNumber: 499,
3507
+ lineNumber: 502,
3487
3508
  },
3488
3509
  type: '(\n uploadId: string,\n ) => Promise<(Upload & { deleted?: true }) | null>',
3489
3510
  },
@@ -3496,7 +3517,7 @@ export const manifest: Manifest = {
3496
3517
  },
3497
3518
  location: {
3498
3519
  filePath: 'src/ctx/base.ts',
3499
- lineNumber: 527,
3520
+ lineNumber: 530,
3500
3521
  },
3501
3522
  type: '(\n /** The "single asset" field structure */\n fileFieldValue: FileFieldValue,\n /** Shows metadata information for a specific locale */\n locale?: string,\n ) => Promise<FileFieldValue | null>',
3502
3523
  },
@@ -3518,7 +3539,7 @@ export const manifest: Manifest = {
3518
3539
  },
3519
3540
  location: {
3520
3541
  filePath: 'src/ctx/base.ts',
3521
- lineNumber: 558,
3542
+ lineNumber: 561,
3522
3543
  },
3523
3544
  type: '(modal: Modal) => Promise<unknown>',
3524
3545
  },
@@ -3531,7 +3552,7 @@ export const manifest: Manifest = {
3531
3552
  },
3532
3553
  location: {
3533
3554
  filePath: 'src/ctx/base.ts',
3534
- lineNumber: 595,
3555
+ lineNumber: 598,
3535
3556
  },
3536
3557
  type: '(options: ConfirmOptions) => Promise<unknown>',
3537
3558
  },
@@ -3552,7 +3573,7 @@ export const manifest: Manifest = {
3552
3573
  },
3553
3574
  location: {
3554
3575
  filePath: 'src/ctx/base.ts',
3555
- lineNumber: 609,
3576
+ lineNumber: 612,
3556
3577
  },
3557
3578
  type: '(path: string) => Promise<void>',
3558
3579
  },