Update flow type

This commit is contained in:
Gregory Schier 2017-08-21 10:40:26 -07:00
parent e805d86c32
commit 0a796451d7
2 changed files with 2 additions and 1 deletions

View File

@ -136,5 +136,6 @@ describe('request.*', () => {
expect(result.request.getEnvironmentVariable('array_test')).toEqual(['a', 'b']);
expect(result.request.getEnvironmentVariable('object_test')).toEqual({a: 'A', b: 'B'});
expect(result.request.getEnvironmentVariable('null_test')).toBe(null);
expect(result.request.getEnvironmentVariable('bad')).toBeUndefined();
});
});

View File

@ -74,7 +74,7 @@ export function init (
getEnvironmentVariable (name: string): string | number | boolean | Object | Array<any> | null {
return renderedContext[name];
},
getEnvironment (): string | number | boolean | Object | Array<any> | null {
getEnvironment (): Object {
return renderedContext;
}