Browse Source

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

Danilo Bürger 5 years ago
parent
commit
66ab3cd695
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/src/Navigation.ts

+ 2
- 2
lib/src/Navigation.ts View File

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