Skip to content

Commit

Permalink
Merge pull request #64 from vstefanovic97/main
Browse files Browse the repository at this point in the history
Update type declaration file with latest API
  • Loading branch information
NullVoxPopuli authored Feb 1, 2024
2 parents 65ffa83 + cd992df commit c913774
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ interface Parsed {
};
}

interface PreprocessorOptions {

/** Default is `false` */
inline_source_map?: boolean;

filename?: string;

}

/**
*/
Expand All @@ -36,14 +44,14 @@ export class Preprocessor {
constructor();
/**
* @param {string} src
* @param {string | undefined} filename
* @param {PreprocessorOptions | undefined} options
* @returns {string}
*/
process(src: string, filename?: string): string;
process(src: string, options?: PreprocessorOptions): string;
/**
* @param {string} src
* @param {string | undefined} filename
* @param {PreprocessorOptions | undefined} options
* @returns {any}
*/
parse(src: string, filename?: string): Parsed[];
parse(src: string, options?: PreprocessorOptions): Parsed[];
}

0 comments on commit c913774

Please sign in to comment.