From 66a1569530b832db2a90fc16698e483ea67b2d52 Mon Sep 17 00:00:00 2001 From: Burak Shen Date: Tue, 5 Feb 2019 14:41:52 +0300 Subject: [PATCH 1/2] add nonce option --- types/styled-jsx/server.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/styled-jsx/server.d.ts b/types/styled-jsx/server.d.ts index 16de5fbb72..dc34e0d649 100644 --- a/types/styled-jsx/server.d.ts +++ b/types/styled-jsx/server.d.ts @@ -1,7 +1,9 @@ import { ReactElement } from "react"; declare function flushToHTML(): string; -declare function flushToReact(): Array>; +declare function flushToReact(opts?: { + nonce?: string; +}): Array>; export { flushToHTML }; export default flushToReact; From 5d2220d3954fc1a3b07a060a270b0f946e653b21 Mon Sep 17 00:00:00 2001 From: Burak Shen Date: Wed, 13 Feb 2019 09:49:22 +0300 Subject: [PATCH 2/2] Update server.d.ts --- types/styled-jsx/server.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/styled-jsx/server.d.ts b/types/styled-jsx/server.d.ts index dc34e0d649..f241a2d6f3 100644 --- a/types/styled-jsx/server.d.ts +++ b/types/styled-jsx/server.d.ts @@ -1,6 +1,8 @@ import { ReactElement } from "react"; -declare function flushToHTML(): string; +declare function flushToHTML(opts?: { + nonce?: string; +}): string; declare function flushToReact(opts?: { nonce?: string; }): Array>;