From be44d2fa3379048e0ea993d69e4687a3561bcc54 Mon Sep 17 00:00:00 2001 From: romiem Date: Wed, 20 Jul 2016 01:24:18 +0100 Subject: [PATCH] Update angular-environment.d.ts (#10096) I've only added the read method because it's the one I use, but technically all the methods available on the envService are actually available on the envServiceProvider too. --- angular-environment/angular-environment.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/angular-environment/angular-environment.d.ts b/angular-environment/angular-environment.d.ts index 483474410c..94972d1383 100644 --- a/angular-environment/angular-environment.d.ts +++ b/angular-environment/angular-environment.d.ts @@ -14,6 +14,11 @@ declare namespace angular.environment { * loads the correct environment variables. */ check: () => void; + /** + * Retrieves the correct version of a + * variable for the current environment. + */ + read: (key: string) => any; } interface Service { /**