Skip to content

Commit 2397a8d

Browse files
Merge pull request #29 from ShaderFrog/extra-export
Adding two ast export types, specifically whitespace
2 parents 9f01ea0 + 4ce44ee commit 2397a8d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"engines": {
44
"node": ">=16"
55
},
6-
"version": "4.1.0",
6+
"version": "4.1.1",
77
"type": "module",
88
"description": "A GLSL ES 1.0 and 3.0 parser and preprocessor that can preserve whitespace and comments",
99
"scripts": {

src/ast/ast-types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface BaseNode {
2727
location?: LocationObject;
2828
}
2929

30-
type Whitespace = string | string[];
30+
export type Whitespace = string | string[];
3131

3232
// Types reused across nodes
3333
export type TypeQualifiers = (
@@ -222,7 +222,7 @@ export interface FloatConstantNode extends BaseNode {
222222
whitespace: Whitespace;
223223
}
224224

225-
type SimpleStatement =
225+
export type SimpleStatement =
226226
| ContinueStatementNode
227227
| BreakStatementNode
228228
| ReturnStatementNode

0 commit comments

Comments
 (0)