From 705162f67cb7bb327ddabb34a6cfdd87e27171b0 Mon Sep 17 00:00:00 2001 From: Dulmandakh Date: Sun, 26 Jun 2022 05:53:32 +0800 Subject: [PATCH] fix export type in migration document MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Napi::Export 👉 Nan::Export --- website/docs/getting-started/migration.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/getting-started/migration.md b/website/docs/getting-started/migration.md index 6b9dcd4a..2dc2994b 100644 --- a/website/docs/getting-started/migration.md +++ b/website/docs/getting-started/migration.md @@ -114,9 +114,9 @@ Node-API uses a different technique for defining the `exports` object. The code: ```cpp -Napi::Export(target, "now", Now); -Napi::Export(target, "nowDouble", NowDouble); -Napi::Export(target, "nowStruct", NowStruct); +Nan::Export(target, "now", Now); +Nan::Export(target, "nowDouble", NowDouble); +Nan::Export(target, "nowStruct", NowStruct); ``` Needs to be replaced with: