diff --git a/typings/react-live.d.ts b/typings/react-live.d.ts index b2c1fd1b..746dc567 100644 --- a/typings/react-live.d.ts +++ b/typings/react-live.d.ts @@ -1,4 +1,5 @@ import { ComponentClass, StatelessComponent, HTMLProps, ComponentType } from 'react' +import { PrismTheme, Language } from 'prism-react-renderer'; // Helper types type Omit = Pick> @@ -13,6 +14,9 @@ export type LiveProviderProps = Omit & { code?: string; noInline?: boolean; transformCode?: (code: string) => string; + language?: Language; + disabled?: boolean; + theme?: PrismTheme; } export const LiveProvider: ComponentClass diff --git a/typings/test.tsx b/typings/test.tsx index bd885820..98133205 100644 --- a/typings/test.tsx +++ b/typings/test.tsx @@ -15,6 +15,14 @@ export const providerC = ( scope={{ Component: React.Component }} transformCode={(code: string): string => code + ';;'} noInline={false} + language="typescript" + theme={{ + plain: { + fontWeight: '800', + color: 'salmon' + }, + styles: [] + }} /> );