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); }