diff --git a/packages/js-client-rest/README.md b/packages/js-client-rest/README.md index bdd3a15..b95456a 100644 --- a/packages/js-client-rest/README.md +++ b/packages/js-client-rest/README.md @@ -66,7 +66,7 @@ try { // ... } catch (e) { // check which operation threw the exception - if (e instanceof client.getCollection.Error) { + if (e instanceof client.api('collections').getCollection.Error) { // get discriminated union error { status, data } const error = e.getActualType(); // sort case's logic