From 7b8b36274298d279dceae3828433f3abe46e34ab Mon Sep 17 00:00:00 2001 From: Boris Prpic Date: Sun, 7 Feb 2016 21:11:51 +0100 Subject: [PATCH] Updates IComponentOptions for angular 1.5 components As per https://docs.angularjs.org/guide/component components does not support restrict or isolate but they do require --- angularjs/angular.d.ts | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index 67b3eb488..26304d7ce 100644 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -1710,20 +1710,12 @@ declare module angular { * Define DOM attribute binding to component properties. Component properties are always bound to the component * controller and not to the scope. */ - bindings?: any; + bindings?: Object; /** * Whether transclusion is enabled. Enabled by default. */ transclude?: boolean; - /** - * Whether the new scope is isolated. Isolated by default. - */ - isolate?: boolean; - /** - * String of subset of EACM which restricts the component to specific directive declaration style. If omitted, - * this defaults to 'E'. - */ - restrict?: string; + require? : string | Array; $canActivate?: () => boolean; $routeConfig?: RouteDefinition[]; } @@ -1774,12 +1766,12 @@ declare module angular { name?: string; priority?: number; replace?: boolean; - require?: any; + require? : string | Array; restrict?: string; scope?: any; - template?: any; + template?: string | Function; templateNamespace?: string; - templateUrl?: any; + templateUrl?: string | Function; terminal?: boolean; transclude?: any; }