fast-path.d.ts 746 B

12345678910111213141516171819202122232425
  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?: boolean): 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;