Skip to content

Commit

Permalink
map Properties to their resolved response, phetsims/ratio-and-proport…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Dec 5, 2022
1 parent d734eb0 commit 3d57a1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/ResponsePacket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ class ResponsePacket {
this._hintResponse = hintResponse;
}

private static getResponseText( response: VoicingResponse ): ResolvedResponse {
// Map VoicingResponse -> ResolvedResponse (resolve functions and Properties to their values)
public static getResponseText( response: VoicingResponse ): ResolvedResponse {

// @ts-ignore This maps to ensuring we cover the TReadOnlyProperty case, but not in a type safe way, https://github.com/phetsims/scenery/issues/1442
return response instanceof ReadOnlyProperty || response instanceof TinyProperty ? response.value :
Expand Down

0 comments on commit 3d57a1d

Please sign in to comment.