You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
741 B

5 years ago
  1. interface FastPathType {
  2. stack: any[];
  3. copy(): any;
  4. getName(): any;
  5. getValue(): any;
  6. valueIsDuplicate(): any;
  7. getNode(count?: number): any;
  8. getParentNode(count?: number): any;
  9. getRootValue(): any;
  10. call(callback: any, ...names: any[]): any;
  11. each(callback: any, ...names: any[]): any;
  12. map(callback: any, ...names: any[]): any;
  13. hasParens(): any;
  14. getPrevToken(node: any): any;
  15. getNextToken(node: any): any;
  16. needsParens(assumeExpressionContext: any): any;
  17. canBeFirstInStatement(): any;
  18. firstInStatement(): any;
  19. }
  20. interface FastPathConstructor {
  21. new (value: any): FastPathType;
  22. from(obj: any): any;
  23. }
  24. declare const FastPath: FastPathConstructor;
  25. export default FastPath;