silphscope 1.4.18 → 1.4.20

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.
Files changed (2) hide show
  1. package/package.json +3 -2
  2. package/silphscope.d.ts +20 -20
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "silphscope",
3
- "version": "1.4.18",
3
+ "version": "1.4.20",
4
4
  "description": "A firered/leafgreen ROM asset extractor for use in web applications",
5
5
  "main": "main.js",
6
+ "types": "silphscope.d.ts",
6
7
  "exports": {
7
8
  ".": {
8
- "import": "./main.js",
9
+ "default": "./main.js",
9
10
  "types": "./silphscope.d.ts"
10
11
  }
11
12
  },
package/silphscope.d.ts CHANGED
@@ -11,12 +11,12 @@ export interface RenderAllMonsOptions {
11
11
  /**
12
12
  * Directory to write extracted assets to.
13
13
  *
14
- * If omitted and `returnFileBuffer` is enabled, files can be
14
+ * If omitted (set to `null`) and `returnFileBuffer` is enabled, files can be
15
15
  * consumed directly from memory without being written to disk.
16
16
  *
17
17
  * @default "./out"
18
18
  */
19
- outputDir?: string;
19
+ outputDir?: string | null;
20
20
 
21
21
  /**
22
22
  * Number of concurrent render operations.
@@ -155,12 +155,12 @@ export interface RenderAllIconsOptions {
155
155
  /**
156
156
  * Directory to write extracted assets to.
157
157
  *
158
- * If omitted and `returnFileBuffer` is enabled, files can be
158
+ * If omitted (set to `null`) and `returnFileBuffer` is enabled, files can be
159
159
  * consumed directly from memory without being written to disk.
160
160
  *
161
161
  * @default "./out"
162
162
  */
163
- outputDir?: string;
163
+ outputDir?: string | null;
164
164
 
165
165
  /**
166
166
  * Number of concurrent render operations.
@@ -277,12 +277,12 @@ export interface RenderAllTrainersOptions {
277
277
  /**
278
278
  * Directory to write extracted assets to.
279
279
  *
280
- * If omitted and `returnFileBuffer` is enabled, files can be
280
+ * If omitted (set to `null`) and `returnFileBuffer` is enabled, files can be
281
281
  * consumed directly from memory without being written to disk.
282
282
  *
283
283
  * @default "./out"
284
284
  */
285
- outputDir?: string;
285
+ outputDir?: string | null;
286
286
 
287
287
  /**
288
288
  * Number of concurrent render operations.
@@ -406,12 +406,12 @@ export interface RenderAllMovesOptions {
406
406
  /**
407
407
  * Directory to write extracted assets to.
408
408
  *
409
- * If omitted and `returnFileBuffer` is enabled, files can be
409
+ * If omitted (set to `null`) and `returnFileBuffer` is enabled, files can be
410
410
  * consumed directly from memory without being written to disk.
411
411
  *
412
412
  * @default "./out"
413
413
  */
414
- outputDir?: string;
414
+ outputDir?: string | null;
415
415
 
416
416
  /**
417
417
  * Number of concurrent render operations.
@@ -505,12 +505,12 @@ export interface RenderAllMovesOptions {
505
505
  renderMasterImage?: boolean;
506
506
 
507
507
  /**
508
- * Sorts all unused moves into a sub directory.
508
+ (set to `null`) * Sorts all unused moves into a sub directory.
509
509
  *
510
510
  * Example:
511
511
  *
512
512
  * If your outputDir was
513
- *
513
+ | null *
514
514
  * `out/Moves`
515
515
  *
516
516
  * Then this would store the unused moves in
@@ -554,12 +554,12 @@ export interface RenderAllBallsOptions {
554
554
  /**
555
555
  * Directory to write extracted assets to.
556
556
  *
557
- * If omitted and `returnFileBuffer` is enabled, files can be
557
+ * If omitted (set to `null`) and `returnFileBuffer` is enabled, files can be
558
558
  * consumed directly from memory without being written to disk.
559
559
  *
560
560
  * @default "./out"
561
561
  */
562
- outputDir?: string;
562
+ outputDir?: string | null;
563
563
 
564
564
  /**
565
565
  * Number of concurrent render operations.
@@ -784,42 +784,42 @@ export interface RenderAllGraphicsOptions {
784
784
  /**
785
785
  * Directory to write extracted mon assets to.
786
786
  *
787
- * If omitted and `returnFileBuffer` is enabled, files can be
787
+ * If omitted (set to `null`) and `returnFileBuffer` is enabled, files can be
788
788
  * consumed directly from memory without being written to disk.
789
789
  *
790
790
  * @default "./out/mons"
791
791
  */
792
- outputMonDir?: string;
792
+ outputMonDir?: string | null;
793
793
 
794
794
  /**
795
795
  * Directory to write extracted icon assets to.
796
796
  *
797
- * If omitted and `returnFileBuffer` is enabled, files can be
797
+ * If omitted (set to `null`) and `returnFileBuffer` is enabled, files can be
798
798
  * consumed directly from memory without being written to disk.
799
799
  *
800
800
  * @default "./out/icons"
801
801
  */
802
- outputIconDir?: string;
802
+ outputIconDir?: string | null;
803
803
 
804
804
  /**
805
805
  * Directory to write extracted trainer assets to.
806
806
  *
807
- * If omitted and `returnFileBuffer` is enabled, files can be
807
+ * If omitted (set to `null`) and `returnFileBuffer` is enabled, files can be
808
808
  * consumed directly from memory without being written to disk.
809
809
  *
810
810
  * @default "./out/trainers"
811
811
  */
812
- outputTrainerDir?: string;
812
+ outputTrainerDir?: string | null;
813
813
 
814
814
  /**
815
815
  * Directory to write extracted move assets to.
816
816
  *
817
- * If omitted and `returnFileBuffer` is enabled, files can be
817
+ * If omitted (set to `null`) and `returnFileBuffer` is enabled, files can be
818
818
  * consumed directly from memory without being written to disk.
819
819
  *
820
820
  * @default "./out/moves"
821
821
  */
822
- outputMoveDir?: string;
822
+ outputMoveDir?: string | null;
823
823
 
824
824
  /**
825
825
  * Sorts all unused moves into a sub directory.