Skip to content

Commit

Permalink
fix(metrascraper): add pkgName type
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 18, 2025
1 parent 3ad53c8 commit 8b8b9d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/metascraper/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,14 @@ declare namespace createMetascraper {
export type Rules = {
[C in keyof Metadata]?: Array<RulesOptions> | RulesOptions;
} & {
/**
* The test function to be executed for skipping rules that doesn't return `true`.
*/
test?: (options: RulesTestOptions) => boolean;
/**
* The package name associated with the rule, used for debugging purposes.
*/
pkgName?: string;
};

export type RulesOptions = (
Expand Down

0 comments on commit 8b8b9d0

Please sign in to comment.