Skip to content

Commit

Permalink
Clean up unknowns
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed Aug 1, 2024
1 parent 620fdcf commit 4157552
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bin/generated_template.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ export interface Location {
readonly offset: number;
}

export interface GrammarSourceObject {
readonly source?: undefined | string | unknown;
readonly offset?: undefined | ((loc: Location) => Location);
export interface Stringable {
readonly toString: () => string;
}

export type GrammarSource = string | GrammarSourceObject | unknown;
export interface GrammarSourceObject extends Stringable {
readonly source?: undefined | string | Stringable;
readonly offset?: undefined | ((loc: Location) => Location);
}

export type GrammarSource = string | GrammarSourceObject;

/** The `start` and `end` position's of an object within the source. */
export interface LocationRange {
Expand Down

0 comments on commit 4157552

Please sign in to comment.