daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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'))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top