From 20045a9cad274e363a74037aaac1437e4b3fee54 Mon Sep 17 00:00:00 2001 From: Eric Burel Date: Mon, 13 Jul 2020 17:14:48 +0200 Subject: [PATCH] Update types.ts Added `WithModifiers` interface for props typing. --- src/types.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/types.ts b/src/types.ts index 06b0a99..c1f9bbd 100644 --- a/src/types.ts +++ b/src/types.ts @@ -44,3 +44,10 @@ export interface ModifiersConfig { */ // eslint-disable-next-line @typescript-eslint/no-explicit-any export type ComponentProps = StyledProps; + +/** +* An interface to extend in order to type component props +*/ +export interface WithModifiers { + modifiers?: ModifierKeys; +}