mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
219 B
TypeScript
9 lines
219 B
TypeScript
import * as pack from "bin-pack";
|
|
|
|
// $ExpectType PackResult<{ width: number; height: number; }>
|
|
const packResult = pack([
|
|
{ width: 50, height: 50 },
|
|
{ width: 25, height: 25 },
|
|
{ width: 25, height: 20 }
|
|
]);
|