Skip to content

Commit

Permalink
add new type updates supporting the new type coverage in parser
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLarkInn committed Apr 28, 2023
1 parent 0fff38d commit a051a7b
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,15 @@ declare abstract class BasicEvaluatedExpression {
* Can this expression have side effects?
*/
couldHaveSideEffects(): boolean;
asBool(): any;

/**
* Creates a boolean representation of this evaluated expression.
*/
asBool(): undefined | boolean;

/**
* Creates a nullish coalescing representation of this evaluated expression.
*/
asNullish(): undefined | boolean;
asString(): any;
setString(string?: any): BasicEvaluatedExpression;
Expand Down Expand Up @@ -10938,6 +10946,12 @@ declare interface RuntimeValueOptions {
buildDependencies?: string[];
version?: string | (() => string);
}

/**
* Helper function for joining two ranges into a single range. This is useful
* when working with AST nodes, as it allows you to combine the ranges of child nodes
* to create the range of the _parent node_.
*/
declare interface ScopeInfo {
definitions: StackedMap<string, ScopeInfo | VariableInfo>;
topLevelScope: boolean | "arrow";
Expand Down Expand Up @@ -11975,6 +11989,12 @@ declare interface SyntheticDependencyLocation {
declare const TOMBSTONE: unique symbol;
declare const TRANSITIVE: unique symbol;
declare const TRANSITIVE_ONLY: unique symbol;

/**
* Helper function for joining two ranges into a single range. This is useful
* when working with AST nodes, as it allows you to combine the ranges of child nodes
* to create the range of the _parent node_.
*/
declare interface TagInfo {
tag: any;
data: any;
Expand Down

0 comments on commit a051a7b

Please sign in to comment.