From a02f4a7a42597027bc6034b520899e97c98764dd Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Sat, 5 Nov 2016 13:53:21 -0500 Subject: [PATCH] fix(TargetState): Narrow `name()` return type to `String` Closes https://github.com/angular-ui/ui-router/issues/3106 --- src/state/targetState.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/state/targetState.ts b/src/state/targetState.ts index 9b767f91..7eeb94bf 100644 --- a/src/state/targetState.ts +++ b/src/state/targetState.ts @@ -60,8 +60,8 @@ export class TargetState { this._params = _params || {}; } - name() { - return this._definition && this._definition.name || this._identifier; + name(): String { + return this._definition && this._definition.name || this._identifier; } identifier(): StateOrName {