From 1c2103441cd25ab4e1d0febaccfca8d7d30cf004 Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 25 Jun 2020 10:16:09 -0500 Subject: [PATCH] fix: always instance options --- src/client/types/typing.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/types/typing.js b/src/client/types/typing.js index debbbea..ae66dd2 100644 --- a/src/client/types/typing.js +++ b/src/client/types/typing.js @@ -42,6 +42,9 @@ export function descriptionFromOps(context, ops) { args, }, }; + if ('function' === typeof description.options) { + description.options = description.options(previous); + } } else { description = { @@ -53,6 +56,9 @@ export function descriptionFromOps(context, ops) { ), ...children[key], }; + if ('function' === typeof description.options) { + description.options = description.options(previous); + } } } return description;