From d10dc05a0c89cbc717e10a120f52fdfd0f46d2cf Mon Sep 17 00:00:00 2001 From: Cosmin Popovici Date: Sat, 30 Nov 2024 16:22:03 +0200 Subject: [PATCH] fix: attributes.remove type --- types/config.d.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/types/config.d.ts b/types/config.d.ts index b06c3973..204236e6 100644 --- a/types/config.d.ts +++ b/types/config.d.ts @@ -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; + remove?: Array; } /**