UNPKG

babel-plugin-typecheck

Version:

Transforms flow type annotations into runtime type checks.

4 lines (3 loc) 127 B
export default function demo <T> (buffer: Buffer<T>, callback: (value: T) => number): number { return callback(buffer[0]); }