From d93a96c3eff416144ea3d989eddf0af62fd53d7c Mon Sep 17 00:00:00 2001 From: Niko Kovacic Date: Fri, 8 Jan 2016 11:36:35 +0100 Subject: [PATCH] Added ui-select to TypeScript definitions --- ui-select/ui-select-tests.ts | 9 +++++++++ ui-select/ui-select.d.ts | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 ui-select/ui-select-tests.ts create mode 100644 ui-select/ui-select.d.ts diff --git a/ui-select/ui-select-tests.ts b/ui-select/ui-select-tests.ts new file mode 100644 index 0000000000..e0017576f3 --- /dev/null +++ b/ui-select/ui-select-tests.ts @@ -0,0 +1,9 @@ +/// + +angular + .module('main', ['ui-select']) + .config(function(uiSelectConfig: angular.ui.select.ISelectConfig) { + uiSelectConfig.appendToBody = true; + uiSelectConfig.resetSearchInput = true; + uiSelectConfig.theme = "bootstrap"; + }); \ No newline at end of file diff --git a/ui-select/ui-select.d.ts b/ui-select/ui-select.d.ts new file mode 100644 index 0000000000..e223b947e1 --- /dev/null +++ b/ui-select/ui-select.d.ts @@ -0,0 +1,19 @@ +// Type definitions for ui-select 0.13.2 +// Project: https://github.com/angular-ui/ui-select +// Definitions by: Niko Kovačič +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module "ui-select" { + var _: string; + export = _; +} + +declare module angular.ui.select { + interface ISelectConfig { + appendToBody: boolean; + resetSearchInput: boolean; + theme: string; + } +}