Skip to content

Commit

Permalink
fix: attributes.remove type
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Nov 30, 2024
1 parent 005e2ee commit d10dc05
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,17 @@ export default interface Config {
* ```
* export default {
* attributes: {
* remove: ['width', 'height'],
* remove: [
* {
* name: 'width',
* value: '100', // or RegExp: /\d/
* },
* ], // or as array: ['width', 'height']
* }
* }
* ```
*/
remove?: Record<string, string[]>;
remove?: Array<string | { name: string; value: string | RegExp }>;
}

/**
Expand Down

0 comments on commit d10dc05

Please sign in to comment.