We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2e5655 commit b6193daCopy full SHA for b6193da
lib/node_modules/@stdlib/buffer/reviver/docs/types/test.ts
@@ -21,9 +21,13 @@ import reviveBuffer = require( './index' );
21
22
// TESTS //
23
24
-// The function can be used to revive a serialized object...
+// The function revives a serialized object...
25
{
26
- JSON.parse( '{"type":"Buffer","data":[5,3]}', reviveBuffer ); // $ExpectType any
+ const o = {
27
+ 'type': 'Buffer',
28
+ 'data': [ 5, 3 ]
29
+ };
30
+ reviveBuffer( 'foo', o ); // $ExpectType any
31
}
32
33
// The function does not compile if provided a first argument that is not a string...
0 commit comments