How to use the core-js/es6.Promise function in core-js

To help you get started, we’ve selected a few core-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Lemoncode / angular2-sample-app / 05 Form Validation / src / api / patientAPI.ts View on Github external
getAllPatientsAsync(): Promise> {
    let patientsPromise = new Promise((resolve, reject) => {
      resolve(patientsMockData);
    });

    return patientsPromise;
  };
github Lemoncode / angular2-sample-app / 04 Form Page / src / api / patientAPI.ts View on Github external
getAllSpecialtiesAsync(): Promise> {
    let specialtiesPromise = new Promise((resolve, reject) => {
      resolve(specialtiesMockData);
    });

    return specialtiesPromise;
  }
}
github Lemoncode / angular2-sample-app / 07 Redux / src / api / patientAPI.ts View on Github external
getPatientByIdAsync(id: number): Promise {
    let patientPromise = new Promise((resolve, reject) => {
      let patient = patientsMockData.find((patient: Patient) => {
        return patient.id === id;
      });

      resolve(patient);
    });

    return patientPromise;
  };
github Lemoncode / angular2-sample-app / 03 List Page / src / api / patientAPI.ts View on Github external
getAllPatientsAsync(): Promise> {
    let patientsPromise = new Promise((resolve, reject) => {
      resolve(patientsMockData);
    });

    return patientsPromise;
  };
github Lemoncode / angular2-sample-app / 05 Form Validation / src / api / patientAPI.ts View on Github external
getPatientByIdAsync(id: number): Promise {
    let patientPromise = new Promise((resolve, reject) => {
      let patient = patientsMockData.find((patient: Patient) => {
        return patient.id === id;
      });

      resolve(patient);
    });

    return patientPromise;
  };
github Lemoncode / angular2-sample-app / 03 List Page / src / api / patientAPI.ts View on Github external
getAllSpecialtiesAsync(): Promise> {
    let specialtiesPromise = new Promise((resolve, reject) => {
      resolve(specialtiesMockData);
    });

    return specialtiesPromise;
  }
}
github Lemoncode / angular2-sample-app / 05 Form Validation / src / api / patientAPI.ts View on Github external
getAllDoctorsAsync(): Promise> {
    let doctorsPromise = new Promise((resolve, reject) => {
      resolve(doctorsMockData);
    });

    return doctorsPromise;
  };
github Lemoncode / angular2-sample-app / 07 Redux / src / api / patientAPI.ts View on Github external
getAllPatientsAsync(): Promise> {
    let patientsPromise = new Promise((resolve, reject) => {
      resolve(patientsMockData);
    });

    return patientsPromise;
  };
github Lemoncode / angular2-sample-app / 07 Redux / src / api / patientAPI.ts View on Github external
getAllSpecialtiesAsync(): Promise> {
    let specialtiesPromise = new Promise((resolve, reject) => {
      resolve(specialtiesMockData);
    });

    return specialtiesPromise;
  };
github Lemoncode / angular2-sample-app / 04 Form Page / src / api / patientAPI.ts View on Github external
getAllPatientsAsync(): Promise> {
    let patientsPromise = new Promise((resolve, reject) => {
      resolve(patientsMockData);
    });

    return patientsPromise;
  };