Commit 32a082b5 authored by Merzough Münker's avatar Merzough Münker
Browse files

fix: less strict typing

parent ca2caf53
Loading
Loading
Loading
Loading
+5 −33
Original line number Diff line number Diff line
@@ -2,45 +2,15 @@ export interface Environment {
  /**
   * The name of the environment
   */
  name: string;
  name?: string;
  /**
   * The app is compiled from code in the production branch
   */
  production: boolean;
  /**
   * The app is compiled from code in the master branch
   */
  master: boolean;
  /**
   * The app is deployed for development purpose and all dev tools
   * should be activated
   */
  development: boolean;
  /**
   * The app is compiled from code in the stable branch
   */
  stable: boolean;
  /**
   * The app is compiled from code in the staging branch
   */
  staging: boolean;
  /**
   * Indicates that the application is compiled and startet in a
   * local development environment (ng serve)
   */
  local: boolean;
  /**
   * Where the service worker is active or not
   */
  serviceWorker: boolean;
  /**
   * The app is used for an e2e test
   */
  e2e: boolean;
  /**
   * The app is compiled from code in a merge request
   */
  mergeRequest: boolean;
  serviceWorker?: boolean;
  /**
   * The current app release
   */
@@ -52,7 +22,7 @@ export interface Environment {
  /**
   * The build timestamp
   */
  timestamp?: string | null;
  timestamp?: string | number | null;
  /**
   * The current branch
   */
@@ -61,4 +31,6 @@ export interface Environment {
   * The current tag
   */
  tag?: string | null;

  [ key: string ]: any;
}
+5 −1
Original line number Diff line number Diff line
<table>
  <tr>
  <tr *ngIf="environment.name">
    <th>Environment</th>
    <td>{{environment.name}}</td>
  </tr>
  <tr>
    <th>Production</th>
    <td>{{environment.production}}</td>
  </tr>
  <tr *ngIf="environment.serviceWorker !== undefined">
    <th>Service Worker</th>
    <td>{{environment.serviceWorker}}</td>
  </tr>
+2 −1
Original line number Diff line number Diff line
import { InjectionToken } from '@angular/core';
import { Environment } from '../environment';

export const RXAP_ENVIRONMENT = new InjectionToken('rxap-environment');
export const RXAP_ENVIRONMENT = new InjectionToken<Environment>('rxap-environment');