@@ -3,26 +3,26 @@ import {MergeExclusive, TypedArray} from 'type-fest';
3
3
4
4
declare namespace tempy {
5
5
type FileOptions = MergeExclusive <
6
- {
7
- /**
6
+ {
7
+ /**
8
8
File extension.
9
9
10
10
Mutually exclusive with the `name` option.
11
11
12
12
_You usually won't need this option. Specify it only when actually needed._
13
13
*/
14
- readonly extension ?: string ;
15
- } ,
16
- {
17
- /**
14
+ readonly extension ?: string ;
15
+ } ,
16
+ {
17
+ /**
18
18
Filename.
19
19
20
20
Mutually exclusive with the `extension` option.
21
21
22
22
_You usually won't need this option. Specify it only when actually needed._
23
23
*/
24
- readonly name ?: string ;
25
- }
24
+ readonly name ?: string ;
25
+ }
26
26
> ;
27
27
28
28
type DirectoryOptions = {
@@ -34,7 +34,7 @@ declare namespace tempy {
34
34
Useful for testing by making it easier to identify cache directories that are created.
35
35
*/
36
36
readonly prefix ?: string ;
37
- }
37
+ } ;
38
38
}
39
39
40
40
declare const tempy : {
@@ -58,7 +58,7 @@ declare const tempy: {
58
58
//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/2f3d094aec2cb1b93bb0f4cffce5ebd6'
59
59
```
60
60
*/
61
- file ( options ?: tempy . FileOptions ) : string ;
61
+ file : ( options ?: tempy . FileOptions ) => string ;
62
62
63
63
/**
64
64
Get a temporary directory path. The directory is created for you.
@@ -74,7 +74,7 @@ declare const tempy: {
74
74
//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/name_3c085674ad31223b9653c88f725d6b41'
75
75
```
76
76
*/
77
- directory ( options ?: tempy . DirectoryOptions ) : string ;
77
+ directory : ( options ?: tempy . DirectoryOptions ) => string ;
78
78
79
79
/**
80
80
Write data to a random temp file.
@@ -87,7 +87,7 @@ declare const tempy: {
87
87
//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/2f3d094aec2cb1b93bb0f4cffce5ebd6'
88
88
```
89
89
*/
90
- write ( fileContent : string | Buffer | TypedArray | DataView | NodeJS . ReadableStream , options ?: tempy . FileOptions ) : Promise < string > ;
90
+ write : ( fileContent : string | Buffer | TypedArray | DataView | NodeJS . ReadableStream , options ?: tempy . FileOptions ) => Promise < string > ;
91
91
92
92
/**
93
93
Synchronously write data to a random temp file.
@@ -100,7 +100,7 @@ declare const tempy: {
100
100
//=> '/private/var/folders/3x/jf5977fn79jbglr7rk0tq4d00000gn/T/2f3d094aec2cb1b93bb0f4cffce5ebd6'
101
101
```
102
102
*/
103
- writeSync ( fileContent : string | Buffer | TypedArray | DataView , options ?: tempy . FileOptions ) : string ;
103
+ writeSync : ( fileContent : string | Buffer | TypedArray | DataView , options ?: tempy . FileOptions ) => string ;
104
104
105
105
/**
106
106
Get the root temporary directory path.
0 commit comments