Skip to content

Commit b6193da

Browse files
committed
Fix TypeScript declarations
1 parent f2e5655 commit b6193da

File tree

1 file changed

+6
-2
lines changed
  • lib/node_modules/@stdlib/buffer/reviver/docs/types

1 file changed

+6
-2
lines changed

lib/node_modules/@stdlib/buffer/reviver/docs/types/test.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ import reviveBuffer = require( './index' );
2121

2222
// TESTS //
2323

24-
// The function can be used to revive a serialized object...
24+
// The function revives a serialized object...
2525
{
26-
JSON.parse( '{"type":"Buffer","data":[5,3]}', reviveBuffer ); // $ExpectType any
26+
const o = {
27+
'type': 'Buffer',
28+
'data': [ 5, 3 ]
29+
};
30+
reviveBuffer( 'foo', o ); // $ExpectType any
2731
}
2832

2933
// The function does not compile if provided a first argument that is not a string...

0 commit comments

Comments
 (0)