From a91f35bc2f5a1abda972355621c20c626e6effaf Mon Sep 17 00:00:00 2001 From: Andreas Holstenson Date: Sat, 28 Sep 2019 19:33:47 +0200 Subject: [PATCH] fix: Typescript entrypoint --- src/{index.js => index.ts} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) rename src/{index.js => index.ts} (59%) diff --git a/src/index.js b/src/index.ts similarity index 59% rename from src/index.js rename to src/index.ts index 0b4e54b..fbff1ff 100644 --- a/src/index.js +++ b/src/index.ts @@ -1,13 +1,15 @@ +import { Language } from './language/language'; + import { IntentsBuilder } from './intents'; import { ActionsBuilder } from './actions'; export * from './intents'; export * from './actions'; -export function intentsBuilder(lang) { +export function intentsBuilder(lang: Language) { return new IntentsBuilder(lang); } -export function actionsBuilder(lang) { +export function actionsBuilder(lang: Language) { return new ActionsBuilder(lang); }