Skip to content

Commit a02f4a7

Browse files
fix(TargetState): Narrow name() return type to String
Closes angular-ui/ui-router#3106
1 parent f5bd96b commit a02f4a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/state/targetState.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export class TargetState {
6060
this._params = _params || {};
6161
}
6262

63-
name() {
64-
return this._definition && this._definition.name || this._identifier;
63+
name(): String {
64+
return this._definition && this._definition.name || <String> this._identifier;
6565
}
6666

6767
identifier(): StateOrName {

0 commit comments

Comments
 (0)