Interface Synopsis
namespace HH;
abstract final class Shapes {...}
Public Methods
::at<T as shape()>(darray $shape, arraykey $index)
Returns the value of the field $index of $shape,
throws if the field is missing
::idx<T as shape()>(darray $shape, arraykey $index, mixed $default = NULL): mixed
Shapes::idx is a helper function for accessing shape field value, or getting
a default if it's not set - similar to idx(), but for shapes
::keyExists<T as shape()>(darray $shape, arraykey $index): bool
Check if a field in shape exists
::removeKey<T as shape()>(inout darray $shape, arraykey $index): void
Removes the $index field from the $shape (passed in as an inout argument)
::toArray<T as shape()>(darray $shape): darray<arraykey, mixed>
::toDict<T as shape()>(darray $shape): dict<arraykey, mixed>