function coerceToTableJSFBTTreeLeaf(
  value: Partial<TableJSFBTTreeLeaf>,
): ?TableJSFBTTreeLeaf {
  return value &&
    typeof value === 'object' &&
    typeof value.desc === 'string' &&
    typeof value.text === 'string' &&
    (typeof value.tokenAliases === 'object' || value.tokenAliases == null)
    ? // $FlowFixMe[incompatible-cast]
      (value: TableJSFBTTreeLeaf)
    : null;
}
@returns an TableJSFBTTreeLeaf object if the given object matches its shape, or null