Skip to content

Instantly share code, notes, and snippets.

View fgcoelho's full-sized avatar

Fernando Coelho fgcoelho

  • 11:15 (UTC -03:00)
View GitHub Profile
// this "shim" can be used on the frontend to prevent from errors on undefined
// decorators in the models, when you are sharing same models across backend and frontend.
// to use this shim simply configure your systemjs/webpack configuration to use this file instead of typeorm module.
// for system.js this resolved this way:
// System.config({
// ...
// packages: {
// "typeorm": {
// main: "typeorm-model-shim.js",