Skip to content

Commit

Permalink
Added Navigation.constants() return type (#5292)
Browse files Browse the repository at this point in the history
  • Loading branch information
danilobuerger authored and guyca committed Jul 21, 2019
1 parent f06787d commit 66ab3cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/Navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { EventsRegistry } from './events/EventsRegistry';
import { ComponentProvider } from 'react-native';
import { SharedElement } from './adapters/SharedElement';
import { CommandsObserver } from './events/CommandsObserver';
import { Constants } from './adapters/Constants';
import { Constants, NavigationConstants } from './adapters/Constants';
import { ComponentEventsObserver } from './events/ComponentEventsObserver';
import { TouchablePreview } from './adapters/TouchablePreview';
import { LayoutRoot, Layout } from './interfaces/Layout';
Expand Down Expand Up @@ -200,7 +200,7 @@ export class NavigationRoot {
/**
* Constants coming from native
*/
public async constants(): Promise<any> {
public async constants(): Promise<NavigationConstants> {
return await Constants.get();
}
}

0 comments on commit 66ab3cd

Please sign in to comment.