Skip to content

Commit e006928

Browse files
olegsklkatallaxie
authored andcommitted
refactor(app): fix typo in InteralStateType (PatrickJS#1083)
Renamed `InteralStateType` to `InternalStateType`.
1 parent 0b1db83 commit e006928

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/app/app.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { ROUTES } from './app.routes';
1313
// App is our top level component
1414
import { App } from './app.component';
1515
import { APP_RESOLVER_PROVIDERS } from './app.resolver';
16-
import { AppState, InteralStateType } from './app.service';
16+
import { AppState, InternalStateType } from './app.service';
1717
import { Home } from './home';
1818
import { About } from './about';
1919
import { NoContent } from './no-content';
@@ -26,7 +26,7 @@ const APP_PROVIDERS = [
2626
];
2727

2828
type StoreType = {
29-
state: InteralStateType,
29+
state: InternalStateType,
3030
restoreInputValues: () => void,
3131
disposeOldHosts: () => void
3232
};

src/app/app.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Injectable } from '@angular/core';
22

3-
export type InteralStateType = {
3+
export type InternalStateType = {
44
[key: string]: any
55
};
66

77
@Injectable()
88
export class AppState {
9-
_state: InteralStateType = { };
9+
_state: InternalStateType = { };
1010

1111
constructor() {
1212

@@ -34,7 +34,7 @@ export class AppState {
3434
}
3535

3636

37-
private _clone(object: InteralStateType) {
37+
private _clone(object: InternalStateType) {
3838
// simple object clone
3939
return JSON.parse(JSON.stringify( object ));
4040
}

0 commit comments

Comments
 (0)