mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
7 lines
157 B
TypeScript
7 lines
157 B
TypeScript
import weight = require("pick-weight");
|
|
|
|
const x = weight(["a", "b", "c"], [1, 2, 3]);
|
|
|
|
// Can only be applied since inferred type is string
|
|
x === "string";
|