mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-01-13 09:00:42 +08: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());
|