From 16719e29529015d74bb61a0b66d9df21aad03cd2 Mon Sep 17 00:00:00 2001 From: Jaryd Carolin Date: Wed, 11 Mar 2020 14:20:40 +1100 Subject: [PATCH] Update api.md Type in the "options" method on connect --- docs/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index cabc7ef..1e5d307 100644 --- a/docs/api.md +++ b/docs/api.md @@ -115,10 +115,10 @@ It does not change the options of the original `connect` it was called on. Calls to `.options()` can be chained. If latter keys conflict with earlier ones, the latter ones will be used: ```js -const a = connect.defaults({ withRef: true }) +const a = connect.options({ withRef: true }) // Options are as documented, except `withRef` which is `true` -const b = a.defaults({ withRef: false }) +const b = a.options({ withRef: false }) // `withRef` is `false` (back to default value) ```