diff --git a/src/api/composition-api-helpers.md b/src/api/composition-api-helpers.md index d09391857d..47ba1afc2a 100644 --- a/src/api/composition-api-helpers.md +++ b/src/api/composition-api-helpers.md @@ -35,12 +35,17 @@ This is the underlying helper that powers [`defineModel()`](/api/sfc-script-setu props: Record, key: string, options?: DefineModelOptions - ) + ): ModelRef type DefineModelOptions = { get?: (v: T) => any set?: (v: T) => any } + + type ModelRef = Ref & [ + ModelRef, + Record +] ``` - **Example**