From 2d426ecfa8a33d7b0b65f978d1d389179a80650c Mon Sep 17 00:00:00 2001 From: Sam Reid Date: Wed, 3 May 2023 14:03:27 -0600 Subject: [PATCH] Separate out scenes, see https://github.com/phetsims/center-and-variability/issues/164 --- js/DynamicProperty.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/DynamicProperty.ts b/js/DynamicProperty.ts index 574319fa..94f2e234 100644 --- a/js/DynamicProperty.ts +++ b/js/DynamicProperty.ts @@ -119,7 +119,9 @@ type SelfOptions = { // Maps a non-null valuePropertyProperty.value into the Property to be used. See top-level documentation for usage. // If it's a string, it will grab that named property out (e.g. it's like passing u => u[ derive ]) - derive?: ( ( outerValue: OuterValueType ) => TReadOnlyProperty ) | KeysMatching>; + // NOTE: This accepts TReadOnlyProperty, but if you have bidirectional:true it must be a full TProperty. + // This is not currently type checked. + derive?: ( ( outerValue: OuterValueType ) => TReadOnlyProperty ) | KeysMatching>; // Maps our input Property value to/from this Property's value. See top-level documentation for usage. // If it's a string, it will grab that named property out (e.g. it's like passing u => u[ derive ])