Skip to content

Commit

Permalink
fix: use string for nonce typing (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jan 20, 2022
1 parent d43074f commit b67b0d9
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ declare module 'react' {
}

export type StyleRegistry = {
styles(options?: { nonce?: boolean }): JSX.Element[]
styles(options?: { nonce?: string }): JSX.Element[]
flush(): void
add(props: any): void
remove(props: any): void
Expand Down
Binary file modified test/snapshots/attribute.js.snap
Binary file not shown.
Binary file modified test/snapshots/external.js.snap
Binary file not shown.
Binary file modified test/snapshots/index.js.snap
Binary file not shown.
Binary file modified test/snapshots/plugins.js.snap
Binary file not shown.

0 comments on commit b67b0d9

Please sign in to comment.