Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

observable.ts 435B

1234567891011
  1. /** Symbol.observable addition */
  2. /* Note: This will add Symbol.observable globally for all TypeScript users,
  3. however, we are no longer polyfilling Symbol.observable */
  4. declare global {
  5. interface SymbolConstructor {
  6. readonly observable: symbol;
  7. }
  8. }
  9. /** Symbol.observable or a string "@@observable". Used for interop */
  10. export const observable = (() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();