Closed veillette closed 2 years ago
In PickRequired, the jsDOC has an example that shows how to use it as type. The list is not quite correct
Example: type MyClassOptions = PickRequired<PhetioObject, 'tandem', 'phetioDocumentation'>; Result: { tandem: Tandem, phetioDocumentation: string }
It should be
type MyClassOptions = PickRequired<PhetioObject, 'tandem' | 'phetioDocumentation'>;
Thanks @veillette, good catch. Fixed in the above commit. Closing.
In PickRequired, the jsDOC has an example that shows how to use it as type. The list is not quite correct
It should be