From 3d57a1d1f46233d1e7c0c4ed3676ddd556ba6c13 Mon Sep 17 00:00:00 2001 From: Michael Kauzmann Date: Wed, 23 Nov 2022 15:30:57 -0700 Subject: [PATCH] map Properties to their resolved response, https://github.com/phetsims/ratio-and-proportion/issues/525 --- js/ResponsePacket.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ResponsePacket.ts b/js/ResponsePacket.ts index 67535f4..efc6cec 100644 --- a/js/ResponsePacket.ts +++ b/js/ResponsePacket.ts @@ -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 :