From 9cebe88a9c68bcae23cf10514f6880d5eeaa9050 Mon Sep 17 00:00:00 2001 From: Adam Thomann Date: Sun, 22 Oct 2017 21:31:07 -0400 Subject: [PATCH 1/2] Add API to babel-helper-hoist-vars README --- packages/babel-helper-hoist-variables/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/babel-helper-hoist-variables/README.md b/packages/babel-helper-hoist-variables/README.md index 1ac18e57c5..5550490f13 100644 --- a/packages/babel-helper-hoist-variables/README.md +++ b/packages/babel-helper-hoist-variables/README.md @@ -1,5 +1,10 @@ # @babel/helper-hoist-variables +## API +```javascript +declare export default hoistVariables(path: NodePath, emit: Function, kind: "var" | "let" = "var"); +``` + ## Usage TODO From aeedabfa4fffe24e16090c3bf9fffa0f6f9c8767 Mon Sep 17 00:00:00 2001 From: Adam Thomann Date: Sun, 22 Oct 2017 21:42:27 -0400 Subject: [PATCH 2/2] Add installation --- packages/babel-helper-hoist-variables/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/babel-helper-hoist-variables/README.md b/packages/babel-helper-hoist-variables/README.md index 5550490f13..a00b8559f6 100644 --- a/packages/babel-helper-hoist-variables/README.md +++ b/packages/babel-helper-hoist-variables/README.md @@ -1,6 +1,13 @@ # @babel/helper-hoist-variables +## Installation + +```sh +npm install @babel/helper-hoist-variables --save +``` + ## API + ```javascript declare export default hoistVariables(path: NodePath, emit: Function, kind: "var" | "let" = "var"); ```