Merge pull request #32673 from elliottsj/styled-components-stylesheet-seal

[styled-components] Add ServerStyleSheet.seal()
This commit is contained in:
Igor Oleinikov
2019-02-03 20:58:52 -08:00
committed by GitHub
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -446,6 +446,7 @@ export class ServerStyleSheet {
readableStream: NodeJS.ReadableStream
): NodeJS.ReadableStream;
readonly instance: this;
seal(): void;
}
type StyleSheetManagerProps =
+1
View File
@@ -472,6 +472,7 @@ const sheet = new ServerStyleSheet();
const html = sheet.collectStyles(<SSRTitle>Hello world</SSRTitle>);
const styleHtml = sheet.getStyleTags();
const styleElement = sheet.getStyleElement();
sheet.seal();
const sheet2 = new ServerStyleSheet();
const element = (