From 89f46e74c5297cbe55f2b262a8e7fcbfa6c09334 Mon Sep 17 00:00:00 2001 From: Irakli Safareli Date: Tue, 26 Jan 2021 14:23:59 +0400 Subject: [PATCH] remove error argument from close callback --- content/api/5-cursor.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/api/5-cursor.mdx b/content/api/5-cursor.mdx index daabf3e..aa4b781 100644 --- a/content/api/5-cursor.mdx +++ b/content/api/5-cursor.mdx @@ -76,6 +76,6 @@ cursor.read(100, (err, rows) => { ## close -### `cursor.close(callback: (err: Error) => void) => void` +### `cursor.close(callback: () => void) => void` Used to close the cursor early. If you want to stop reading from the cursor before you get all of the rows returned, call this.