mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[angular-ui-bootstrap] Export module name (#37813)
* [angular-ui-bootstrap] Make compatible with npm - starting with 1.0.0 it exports the module name * Add test that type is possible to reference
This commit is contained in:
parent
953f00632e
commit
f0f7aab46f
29
types/angular-ui-bootstrap/index.d.ts
vendored
29
types/angular-ui-bootstrap/index.d.ts
vendored
@ -1,8 +1,9 @@
|
||||
// Type definitions for Angular UI Bootstrap 0.13.3
|
||||
// Type definitions for Angular UI Bootstrap 1.0.0
|
||||
// Project: https://github.com/angular-ui/bootstrap
|
||||
// Definitions by: Brian Surowiec <https://github.com/xt0rted>,
|
||||
// Ryan Southgate <https://github.com/ry8806>
|
||||
// Alfie Johnson <https://github.com/alfiej>
|
||||
// Igor Oleinikov <https://github.com/Igorbek>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@ -10,30 +11,8 @@
|
||||
|
||||
import * as angular from 'angular';
|
||||
|
||||
export type IAccordionConfig = angular.ui.bootstrap.IAccordionConfig;
|
||||
export type IButtonConfig = angular.ui.bootstrap.IButtonConfig;
|
||||
export type IDatepickerConfig = angular.ui.bootstrap.IDatepickerConfig;
|
||||
export type IDatepickerPopupConfig = angular.ui.bootstrap.IDatepickerPopupConfig;
|
||||
export type IDropdownConfig = angular.ui.bootstrap.IDropdownConfig;
|
||||
export type IModalProvider = angular.ui.bootstrap.IModalProvider;
|
||||
export type IModalService = angular.ui.bootstrap.IModalService;
|
||||
export type IModalServiceInstance = angular.ui.bootstrap.IModalServiceInstance;
|
||||
export type IModalInstanceService = angular.ui.bootstrap.IModalInstanceService;
|
||||
export type IModalScope = angular.ui.bootstrap.IModalScope;
|
||||
export type IModalSettings = angular.ui.bootstrap.IModalSettings;
|
||||
export type IModalStackService = angular.ui.bootstrap.IModalStackService;
|
||||
export type IModalStackedMapKeyValuePair = angular.ui.bootstrap.IModalStackedMapKeyValuePair;
|
||||
export type IPaginationConfig = angular.ui.bootstrap.IPaginationConfig;
|
||||
export type IPagerConfig = angular.ui.bootstrap.IPagerConfig;
|
||||
export type IPositionCoordinates = angular.ui.bootstrap.IPositionCoordinates;
|
||||
export type IPositionService = angular.ui.bootstrap.IPositionService;
|
||||
export type IProgressConfig = angular.ui.bootstrap.IProgressConfig;
|
||||
export type IRatingConfig = angular.ui.bootstrap.IRatingConfig;
|
||||
export type ITimepickerConfig = angular.ui.bootstrap.ITimepickerConfig;
|
||||
export type ITooltipOptions = angular.ui.bootstrap.ITooltipOptions;
|
||||
export type ITooltipProvider = angular.ui.bootstrap.ITooltipProvider;
|
||||
export type ITransitionService = angular.ui.bootstrap.ITransitionService;
|
||||
export type ITransitionServiceOptions = angular.ui.bootstrap.ITransitionServiceOptions;
|
||||
declare const moduleName: 'ui.bootstrap';
|
||||
export = moduleName;
|
||||
|
||||
declare module 'angular' {
|
||||
export namespace ui.bootstrap {
|
||||
|
||||
@ -0,0 +1,8 @@
|
||||
import angular from 'angular';
|
||||
import uiBootstrap from 'angular-ui-bootstrap';
|
||||
|
||||
angular.module('app', [uiBootstrap]);
|
||||
|
||||
// type defined in the angular namespace
|
||||
declare const $uibModal: angular.ui.bootstrap.IModalService;
|
||||
$uibModal.open({ templateUrl: 'template.hmtl' });
|
||||
@ -15,10 +15,12 @@
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"allowSyntheticDefaultImports": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"angular-ui-bootstrap-tests.ts"
|
||||
"test/angular-ui-bootstrap-tests.ts",
|
||||
"test/angular-ui-bootstrap-module-tests.ts"
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user