File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ path = "src/lib.rs"
9
9
10
10
[dependencies ]
11
11
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
12
- napi = { version = " 2.12.2 " , default-features = false , features = [" napi4" ] }
13
- napi-derive = " 2.12.2 "
12
+ napi = { version = " 3.0.0-beta.3 " , default-features = false , features = [" napi4" ] }
13
+ napi-derive = " 3.0.0-beta.3 "
14
14
php = { path = " ../php" }
15
15
16
16
[build-dependencies ]
Original file line number Diff line number Diff line change @@ -305,13 +305,13 @@ impl PhpHeaders {
305
305
/// });
306
306
/// ```
307
307
#[ napi]
308
- pub fn for_each < F : Fn ( String , String , & This ) -> Result < ( ) > > (
308
+ pub fn for_each < F : Fn ( String , String , This ) -> Result < ( ) > > (
309
309
& self ,
310
310
this : This ,
311
311
callback : F ,
312
312
) -> Result < ( ) > {
313
313
for entry in self . entries ( ) {
314
- callback ( entry. 1 , entry. 0 , & this) ?;
314
+ callback ( entry. 1 , entry. 0 , this) ?;
315
315
}
316
316
Ok ( ( ) )
317
317
}
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ export interface PhpOptions {
56
56
/** Throw request errors */
57
57
throwRequestErrors ?: boolean
58
58
}
59
+ undefinedundefined
59
60
export type PhpHeaders = Headers
60
61
/**
61
62
* A multi-map of HTTP headers.
@@ -222,7 +223,7 @@ export declare class Headers {
222
223
* }
223
224
* ```
224
225
*/
225
- entries ( ) : Array < Entry >
226
+ entries ( ) : Array < Entry < string , string > >
226
227
/**
227
228
* Get an iterator over the header keys.
228
229
*
You can’t perform that action at this time.
0 commit comments