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 ])