UNPKG

@nomiclabs/buidler

Version:

Buidler is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

8 lines (7 loc) 253 B
/** * This function is a typed version of `Object.keys`. Note that it's type * unsafe. You have to be sure that `o` has exactly the same keys as `T`. */ export const unsafeObjectKeys = Object.keys as <T>( o: T ) => Array<Extract<keyof T, string>>;