Skip to content

Commit

Permalink
exporting the Comment interface to reuse the typing
Browse files Browse the repository at this point in the history
  • Loading branch information
Janther committed Aug 27, 2023
1 parent a03338a commit b6f23fc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
type Comment = {
export interface Comment {
type: 'BlockComment' | 'LineComment';
raw: string;
value: string;
range: [number, number];
};
}

declare function extractComments(str: string): Comment[];

export = extractComments;
export default function extractComments(str: string): Comment[];

0 comments on commit b6f23fc

Please sign in to comment.