Pārlūkot izejas kodu

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

Danilo Bürger 5 gadus atpakaļ
vecāks
revīzija
66ab3cd695
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      lib/src/Navigation.ts

+ 2
- 2
lib/src/Navigation.ts Parādīt failu

@@ -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
 }