mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-27 10:00:33 +00:00
7 lines
156 B
TypeScript
7 lines
156 B
TypeScript
import * as weight from "pick-weight";
|
|
|
|
const x = weight(["a", "b", "c"], [1, 2, 3]);
|
|
|
|
// Can only be applied since inferred type is string
|
|
x === "string";
|