From 751d8b5b42c1ac694f4bb89058959ab3a2c1f1ac Mon Sep 17 00:00:00 2001 From: Gareth Hancock <64541249+GazHank@users.noreply.github.com> Date: Tue, 27 Jun 2023 15:09:37 +0100 Subject: [PATCH] correct async write Signed-off-by: Gareth Hancock <64541249+GazHank@users.noreply.github.com> --- lib/load-bindings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/load-bindings.ts b/lib/load-bindings.ts index 3eb61f1a..56039ee5 100644 --- a/lib/load-bindings.ts +++ b/lib/load-bindings.ts @@ -15,4 +15,4 @@ export const asyncOpen = binding.open ? promisify(binding.open) : async () => { export const asyncSet = binding.set ? promisify(binding.set) : async () => { throw new Error('"binding.set" Method not implemented')} export const asyncUpdate = binding.update ? promisify(binding.update) : async () => { throw new Error('"binding.update" Method not implemented')} export const asyncRead = binding.read ? promisify(binding.read) : async () => { throw new Error('"binding.read" Method not implemented')} -export const asyncWrite = binding.read ? promisify(binding.write) : async () => { throw new Error('"binding.write" Method not implemented')} +export const asyncWrite = binding.write ? promisify(binding.write) : async () => { throw new Error('"binding.write" Method not implemented')}