Class.d.ts 615 B

1234567891011121314151617181920
  1. import extend = require('./extend');
  2. import inherits = require('./inherits');
  3. import types = require('./types');
  4. declare namespace Class {
  5. class Base {
  6. toString(): string;
  7. }
  8. class IConstructor extends Base {
  9. constructor(...args: any[]);
  10. static extend(methods: any, statics: any): IConstructor;
  11. static inherits(Class: types.AnyFn): void;
  12. static methods(methods: any): IConstructor;
  13. static statics(statics: any): IConstructor;
  14. [method: string]: any;
  15. }
  16. }
  17. declare function Class(methods: any, statics?: any): Class.IConstructor;
  18. export = Class;