atlassian / atlassian/extract-react-types

Add converter for TSMappedType

Open
#75 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
188
Forks
31
PR merge metrics
No merged PRs in 30d

Description

I am using XOR type from here: https://bitbucket.org/atlassian/atlaskit-mk-2/src/31638e072721303cafbea43fe78c94a1ef92fd11/packages/core/type-helpers/src/index.ts#lines-159
To specify a type that is one or another, but not both here:
https://bitbucket.org/atlassian/atlaskit-mk-2/pull-requests/6112/ms-1987-step-31-move-editor-and-other/diff#Lpackages/editor/editor-core/src/plugins/media/types.tsT79

Basically, I want this prop to accept either
```
viewMediaClientConfig: MediaClientConfig;
```
or
```
viewContext: Promise;
```
but not both.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.