mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
6 lines
255 B
TypeScript
6 lines
255 B
TypeScript
// Typed rest signatures still exceed the callable adapter. (A typed preset
|
|
// binds to a fixed signature and compiles.)
|
|
const preset = ((value: number) => value).bind(null, 1);
|
|
const rest = ((...values: number[]) => values.length).bind(null);
|
|
export {};
|