File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -109,15 +109,15 @@ declare const hasha: {
109
109
@param stream - A stream you want to hash.
110
110
@returns The calculated hash.
111
111
*/
112
- fromStream ( stream : NodeJS . ReadableStream ) : Promise < string | null > ;
112
+ fromStream ( stream : NodeJS . ReadableStream ) : Promise < string > ;
113
113
fromStream (
114
114
stream : NodeJS . ReadableStream ,
115
115
options ?: hasha . Options < hasha . ToStringEncoding >
116
- ) : Promise < string | null > ;
116
+ ) : Promise < string > ;
117
117
fromStream (
118
118
stream : NodeJS . ReadableStream ,
119
119
options ?: hasha . Options < 'buffer' >
120
- ) : Promise < Buffer | null > ;
120
+ ) : Promise < Buffer > ;
121
121
122
122
/**
123
123
Calculate the hash for a file.
@@ -140,15 +140,15 @@ declare const hasha: {
140
140
})();
141
141
```
142
142
*/
143
- fromFile ( filePath : string ) : Promise < string | null > ;
143
+ fromFile ( filePath : string ) : Promise < string > ;
144
144
fromFile (
145
145
filePath : string ,
146
146
options : hasha . Options < hasha . ToStringEncoding >
147
- ) : Promise < string | null > ;
147
+ ) : Promise < string > ;
148
148
fromFile (
149
149
filePath : string ,
150
150
options : hasha . Options < 'buffer' >
151
- ) : Promise < Buffer | null > ;
151
+ ) : Promise < Buffer > ;
152
152
153
153
/**
154
154
Synchronously calculate the hash for a file.
You can’t perform that action at this time.
0 commit comments