Ver código fonte

Added Navigation.constants() return type (#5292)

Danilo Bürger 5 anos atrás
pai
commit
66ab3cd695
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      lib/src/Navigation.ts

+ 2
- 2
lib/src/Navigation.ts Ver arquivo

@@ -11,7 +11,7 @@ import { EventsRegistry } from './events/EventsRegistry';
11 11
 import { ComponentProvider } from 'react-native';
12 12
 import { SharedElement } from './adapters/SharedElement';
13 13
 import { CommandsObserver } from './events/CommandsObserver';
14
-import { Constants } from './adapters/Constants';
14
+import { Constants, NavigationConstants } from './adapters/Constants';
15 15
 import { ComponentEventsObserver } from './events/ComponentEventsObserver';
16 16
 import { TouchablePreview } from './adapters/TouchablePreview';
17 17
 import { LayoutRoot, Layout } from './interfaces/Layout';
@@ -200,7 +200,7 @@ export class NavigationRoot {
200 200
   /**
201 201
    * Constants coming from native
202 202
    */
203
-  public async constants(): Promise<any> {
203
+  public async constants(): Promise<NavigationConstants> {
204 204
     return await Constants.get();
205 205
   }
206 206
 }