From b417a1e3c3cb6899c7bd4073bed066b97f0a45c5 Mon Sep 17 00:00:00 2001 From: niyari Date: Sat, 8 Dec 2018 09:54:51 +0900 Subject: [PATCH 1/2] Add AutoInitialization --- types/materialize-css/autoinit.d.ts | 8 ++++++++ types/materialize-css/index.d.ts | 1 + 2 files changed, 9 insertions(+) create mode 100644 types/materialize-css/autoinit.d.ts diff --git a/types/materialize-css/autoinit.d.ts b/types/materialize-css/autoinit.d.ts new file mode 100644 index 0000000000..96035db75b --- /dev/null +++ b/types/materialize-css/autoinit.d.ts @@ -0,0 +1,8 @@ +declare namespace M { + class AutoInitialization { + } + /** + * Automatically initialize components. + */ + function AutoInit(context?: Element): AutoInitialization; +} diff --git a/types/materialize-css/index.d.ts b/types/materialize-css/index.d.ts index f8502cafb4..3be768a216 100644 --- a/types/materialize-css/index.d.ts +++ b/types/materialize-css/index.d.ts @@ -9,6 +9,7 @@ /// /// +/// /// /// /// From d9d3952591a95436e8c7b998267dd8f9c12fb008 Mon Sep 17 00:00:00 2001 From: niyari Date: Sun, 9 Dec 2018 08:05:11 +0900 Subject: [PATCH 2/2] change return type as void. --- types/materialize-css/autoinit.d.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/types/materialize-css/autoinit.d.ts b/types/materialize-css/autoinit.d.ts index 96035db75b..c3e9009b1d 100644 --- a/types/materialize-css/autoinit.d.ts +++ b/types/materialize-css/autoinit.d.ts @@ -1,8 +1,6 @@ declare namespace M { - class AutoInitialization { - } /** * Automatically initialize components. */ - function AutoInit(context?: Element): AutoInitialization; + function AutoInit(context?: Element): void; }