diff --git a/packages/react-base16-styling/src/index.ts b/packages/react-base16-styling/src/index.ts index 382fcec3..9d8cca29 100644 --- a/packages/react-base16-styling/src/index.ts +++ b/packages/react-base16-styling/src/index.ts @@ -266,7 +266,7 @@ export const getBase16Theme = ( : undefined; }; -export const invertTheme = (theme: Theme): Theme => { +export const invertTheme = (theme: Theme | undefined): Theme | undefined => { if (typeof theme === 'string') { return `${theme}:inverted`; }