Skip to content

Commit

Permalink
Adding two ast export types, specifically whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRayCode committed Jul 6, 2024
1 parent 9f01ea0 commit 4ce44ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"engines": {
"node": ">=16"
},
"version": "4.1.0",
"version": "4.1.1",
"type": "module",
"description": "A GLSL ES 1.0 and 3.0 parser and preprocessor that can preserve whitespace and comments",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/ast/ast-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface BaseNode {
location?: LocationObject;
}

type Whitespace = string | string[];
export type Whitespace = string | string[];

// Types reused across nodes
export type TypeQualifiers = (
Expand Down Expand Up @@ -222,7 +222,7 @@ export interface FloatConstantNode extends BaseNode {
whitespace: Whitespace;
}

type SimpleStatement =
export type SimpleStatement =
| ContinueStatementNode
| BreakStatementNode
| ReturnStatementNode
Expand Down

0 comments on commit 4ce44ee

Please sign in to comment.