From 1097fb71fc1aafb8111077572433f8516dc1fcce Mon Sep 17 00:00:00 2001 From: Spencer Elliott Date: Thu, 31 Jan 2019 10:34:20 -0500 Subject: [PATCH] [styled-components] Add ServerStyleSheet.seal() https://github.com/styled-components/styled-components/blob/c3eedbeb79621acd668e15ed2d63107528ed81c3/packages/styled-components/src/models/ServerStyleSheet.js#L27-L38 --- types/styled-components/index.d.ts | 1 + types/styled-components/test/index.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/types/styled-components/index.d.ts b/types/styled-components/index.d.ts index 924699dd3a..e28b05066e 100644 --- a/types/styled-components/index.d.ts +++ b/types/styled-components/index.d.ts @@ -446,6 +446,7 @@ export class ServerStyleSheet { readableStream: NodeJS.ReadableStream ): NodeJS.ReadableStream; readonly instance: this; + seal(): void; } type StyleSheetManagerProps = diff --git a/types/styled-components/test/index.tsx b/types/styled-components/test/index.tsx index 7108f737f7..bae94072ec 100644 --- a/types/styled-components/test/index.tsx +++ b/types/styled-components/test/index.tsx @@ -472,6 +472,7 @@ const sheet = new ServerStyleSheet(); const html = sheet.collectStyles(Hello world); const styleHtml = sheet.getStyleTags(); const styleElement = sheet.getStyleElement(); +sheet.seal(); const sheet2 = new ServerStyleSheet(); const element = (