Skip to content

fix: Add missing exports#25

Merged
sddonne merged 7 commits intomainfrom
make-public
Feb 25, 2026
Merged

fix: Add missing exports#25
sddonne merged 7 commits intomainfrom
make-public

Conversation

@sddonne
Copy link
Contributor

@sddonne sddonne commented Feb 24, 2026

Summary

Modify type exports.

Details

Now the main types are imported from "@elastic/esql/types".
Some tools like Walker and Visitor are now being exposed.

*/

export type * from './types';
export type { VisitorMethods } from './types';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only VisitorMethods to not pollute the exports with all the types.


export const isParametrized = (node: ESQLProperNode): boolean => Walker.params(node).length > 0;

const isESQLAstBaseItem = (node: unknown): node is types.ESQLAstBaseItem =>
Copy link
Contributor Author

@sddonne sddonne Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 3 were declared in src/types.ts, better if we leave that file only for types.

export { PromQLBuilder } from './ast/builder';
export type { PromQLAstNodeTemplate } from './ast/builder/types';

// Walker
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Walker was not exposed

@sddonne sddonne marked this pull request as ready for review February 24, 2026 16:39
@sddonne sddonne requested a review from a team as a code owner February 24, 2026 16:39
Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very nice Seb

@sddonne sddonne merged commit fa832db into main Feb 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants