babel / babel/website

Update "property" type parameter for "optionalMemberExpression"

Open
#2,149 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
777
Forks
1.4k
Avg merge
16h 45m
Merged PRs (30d)
3

Description

Currently the section for [optionalMemberExpression ](https://babeljs.io/docs/en/babel-types#optionalmemberexpression) is saying that `property` parameter could be `any`, but it isn't true anymore, as well [could be noticed on the code](https://github.com/babel/babel/blob/e9c1bce50f590c484e9ba7cc0b19caa88e66659d/packages/babel-types/src/definitions/experimental.js#L87-L88).

I think that it should be update to: if `computed` then `Expression` else `Identifier` (required)`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.