Guest User

Untitled

a guest
Jan 21st, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. error TS2339: Property 'random' does not exist on type 'Object'.
  2. error TS2339: Property 'isArray' does not exist on type 'Object'.
  3. error TS2339: Property 'defineProperties' does not exist on type 'Object'.
  4. error TS2339: Property 'defineProperty' does not exist on type 'Object'.
  5.  
  6. interface Window {
  7. Array: Object,
  8. Object: Object,
  9. WeakMap: Object,
  10. Symbol: Object,
  11. Math: Object,
  12. }
  13.  
  14. interface Object {
  15. random: Function,
  16. isArray: Function,
  17. defineProperties: Function,
  18. defineProperty: Function,
  19. create: Function,
  20. keys: Function,
  21. for: Function,
  22. iterator: Function,
  23. asyncIterator: Function,
  24. }
  25. declare var window: Window
  26. declare var object: Object
  27.  
  28. index.ts(1432,43): error TS2538: Type 'Object' cannot be used as an index type.
  29. index.ts(1725,23): error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'Object' has no compatible call signatures.
  30.  
  31. interface Object {
  32. [index: string]: any
  33. }
  34.  
  35.  
  36. error TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'Object' has no compatible call signatures.
  37.  
  38. if (!isValidElement(element) && ObjectHasOwnProperty.call(Object(element), 'default'))
Add Comment
Please, Sign In to add comment