From 015fd8c87ba42f0fc87e897b070f4f4452d5fff0 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Tue, 16 May 2023 21:00:10 +0200 Subject: [PATCH] feat: add TS definitions --- index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 0000000..5243e4b --- /dev/null +++ b/index.d.ts @@ -0,0 +1,8 @@ +import type * as pirates from 'pirates'; +import type * as sucrase from 'sucrase'; + +export function addHook( + extension: string, + options?: sucrase.Options, +): ReturnType; +export function defaultHooks(): void;