File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import { renderToStaticMarkup } from "react-dom/server";
1414 */
1515export function toComponent (
1616 html : string ,
17- styles : Styles = defaultStyles
17+ styles : Styles < any , any > = defaultStyles
1818) : React . ReactElement {
1919 const { dash } = styles ;
2020 const { names, css } = createStylesFromString ( html , styles ) ;
@@ -69,7 +69,7 @@ export interface StyleProps {
6969 /**
7070 * An instance of `styles()`. Defaults to the default styles instance in `@dash-ui/styles`.
7171 */
72- styles ?: Styles ;
72+ styles ?: Styles < any , any > ;
7373}
7474
7575/**
@@ -82,7 +82,7 @@ export interface StyleProps {
8282 * // gatsby-ssr.js
8383 * exports.replaceRenderer = require('@dash-ui/react/server').createGatsbyRenderer()
8484 */
85- export function createGatsbyRenderer ( styles : Styles = defaultStyles ) {
85+ export function createGatsbyRenderer ( styles : Styles < any , any > = defaultStyles ) {
8686 /* istanbul ignore next */
8787 return function replaceRenderer < P = any > ( props : P ) : P {
8888 // @ts -expect-error
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import * as React from "react";
1010 */
1111export declare function toComponent (
1212 html : string ,
13- styles ?: Styles
13+ styles ?: Styles < any , any >
1414) : React . ReactElement ;
1515/**
1616 * A React component for injecting SSR CSS styles into Next.js documents
@@ -54,7 +54,7 @@ export interface StyleProps {
5454 /**
5555 * An instance of `styles()`. Defaults to the default styles instance in `@dash-ui/styles`.
5656 */
57- styles ?: Styles ;
57+ styles ?: Styles < any , any > ;
5858}
5959/**
6060 * Creates a Gatsby replaceRenderer for injecting styles generated by Dash on
@@ -67,6 +67,6 @@ export interface StyleProps {
6767 * exports.replaceRenderer = require('@dash-ui/react/server').createGatsbyRenderer()
6868 */
6969export declare function createGatsbyRenderer (
70- styles ?: Styles
70+ styles ?: Styles < any , any >
7171) : < P = any > ( props : P ) => P ;
7272export * from "@dash-ui/styles/server" ;
You can’t perform that action at this time.
0 commit comments