index.d.ts 509 B

1234567891011121314151617
  1. declare module 'styled-jsx' {
  2. export type StyledJsxStyleRegistry = {
  3. styles(options?: { nonce?: string }): JSX.Element[]
  4. flush(): void
  5. add(props: any): void
  6. remove(props: any): void
  7. }
  8. export function useStyleRegistry(): StyledJsxStyleRegistry
  9. export function StyleRegistry({
  10. children,
  11. registry
  12. }: {
  13. children: JSX.Element | import('react').ReactNode
  14. registry?: StyledJsxStyleRegistry
  15. }): JSX.Element
  16. export function createStyleRegistry(): StyledJsxStyleRegistry
  17. }