Skip to content

Conversation

@dhavalpanjwani
Copy link

Summary

The compile function:

  • Parses a JMESPath expression string into an AST (Abstract Syntax Tree)
  • Already exported in JavaScript at src/jmespath.js:2403
  • Now also exported in TypeScript definitions at src/jmespath.d.ts:18

What was changed:
Added type definitions for compile and tokenize functions in src/jmespath.d.ts:18-20, so TypeScript users can now properly import and use these functions with type checking.

Usage example:
const jmespath = require('@cloudelements/jmespath');

// Compile an expression to AST
const ast = jmespath.compile('foo.bar');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants