diff --git a/src/app/layout/blocks/block.component.ts b/src/app/layout/blocks/block.component.ts index 0b3c09c..65d7104 100644 --- a/src/app/layout/blocks/block.component.ts +++ b/src/app/layout/blocks/block.component.ts @@ -18,7 +18,7 @@ export class BlockComponent { @Input() block: noosfero.Block; @Input() owner: noosfero.Profile | noosfero.Environment; - private modalInstance: any = null; + private modalInstance: ng.ui.bootstrap.IModalServiceInstance; originalBlock: noosfero.Block; currentUser: noosfero.User; @@ -26,7 +26,8 @@ export class BlockComponent { editionMode = false; designMode = false; - constructor(private $uibModal: any, + constructor( + private $uibModal: ng.ui.bootstrap.IModalService, private $scope: ng.IScope, private $state: ng.ui.IStateService, private $rootScope: ng.IRootScopeService, diff --git a/src/app/profile/custom-content/custom-content.component.ts b/src/app/profile/custom-content/custom-content.component.ts index bea1a2a..5c4ca97 100644 --- a/src/app/profile/custom-content/custom-content.component.ts +++ b/src/app/profile/custom-content/custom-content.component.ts @@ -1,8 +1,8 @@ -import {Component, Input, Inject} from 'ng-forward'; -import {ProfileService} from '../../../lib/ng-noosfero-api/http/profile.service'; -import {NotificationService} from '../../shared/services/notification.service'; -import {PermissionDirective} from '../../shared/components/permission/permission.directive'; -import {DesignModeService} from '../../admin/layout-edit/designMode.service'; +import { Component, Input, Inject } from 'ng-forward'; +import { ProfileService } from '../../../lib/ng-noosfero-api/http/profile.service'; +import { NotificationService } from '../../shared/services/notification.service'; +import { PermissionDirective } from '../../shared/components/permission/permission.directive'; +import { DesignModeService } from '../../admin/layout-edit/designMode.service'; @Component({ selector: 'custom-content', @@ -21,9 +21,10 @@ export class CustomContentComponent { content: string; originalContent: string; - private modalInstance: any = null; + private modalInstance: ng.ui.bootstrap.IModalServiceInstance; - constructor(private $uibModal: any, + constructor( + private $uibModal: ng.ui.bootstrap.IModalService, private $scope: ng.IScope, private profileService: ProfileService, private notificationService: NotificationService, diff --git a/typings.json b/typings.json index 068b692..9692b5c 100644 --- a/typings.json +++ b/typings.json @@ -8,6 +8,7 @@ "angular-mocks": "github:DefinitelyTyped/DefinitelyTyped/angularjs/angular-mocks.d.ts", "angular-translate": "github:DefinitelyTyped/DefinitelyTyped/angular-translate/angular-translate.d.ts#19850bf86c876e0c2544842114878ece4664941a", "angular-ui-router": "github:DefinitelyTyped/DefinitelyTyped/angular-ui-router/angular-ui-router.d.ts#655f8c1bf3c71b0e1ba415b36309604f79326ac8", + "angular-ui-bootstrap": "github:DefinitelyTyped/DefinitelyTyped/angular-ui-bootstrap/angular-ui-bootstrap.d.ts", "es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#4de74cb527395c13ba20b438c3a7a419ad931f1c", "jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#dd638012d63e069f2c99d06ef4dcc9616a943ee4", "jquery": "github:DefinitelyTyped/DefinitelyTyped/jquery/jquery.d.ts#470954c4f427e0805a2d633636a7c6aa7170def8", -- libgit2 0.21.2