index.d.ts 1.1 KB

1234567891011121314151617181920
  1. declare type PropertyKey = string | number | symbol;
  2. declare namespace Reflect {
  3. function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
  4. function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: any): any;
  5. function defineProperty(target: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
  6. function deleteProperty(target: any, propertyKey: PropertyKey): boolean;
  7. function get(target: any, propertyKey: PropertyKey, receiver?: any): any;
  8. function getOwnPropertyDescriptor(target: any, propertyKey: PropertyKey): PropertyDescriptor;
  9. function getPrototypeOf(target: any): any;
  10. function has(target: any, propertyKey: string): boolean;
  11. function has(target: any, propertyKey: symbol): boolean;
  12. function isExtensible(target: any): boolean;
  13. function ownKeys(target: any): Array<PropertyKey>;
  14. function preventExtensions(target: any): boolean;
  15. function set(target: any, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
  16. function setPrototypeOf(target: any, proto: any): boolean;
  17. }
  18. export = Reflect;