mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
238 B
TypeScript
13 lines
238 B
TypeScript
import { Codec } from "level-codec";
|
|
|
|
const test = (codec: Codec) => {
|
|
return codec.keyAsBuffer();
|
|
};
|
|
|
|
test(new Codec({ keyEncoding: "hex" }));
|
|
test(new Codec());
|
|
|
|
// new not needed
|
|
test(Codec({ keyEncoding: "hex" }));
|
|
test(Codec());
|