Fix definitions for loadable-server

This commit is contained in:
Simon Korzun 2019-01-30 11:21:04 -05:00
parent 55dbfec2eb
commit e1a49e9bc8
2 changed files with 9 additions and 9 deletions

View File

@ -51,7 +51,7 @@ export class ChunkExtractor {
/**
* Get scripts as a string of `<script>` tags
*/
getScriptTags(): string[];
getScriptTags(): string;
/**
* Get scripts as an array of React `<script>` elements.
@ -61,7 +61,7 @@ export class ChunkExtractor {
/**
* Get "prefetch" and "preload" links as a string of `<link>` tags
*/
getLinkTags(): string[];
getLinkTags(): string;
/**
* Get "prefetch" and "preload" links as an array of React `<link>` elements
@ -71,7 +71,7 @@ export class ChunkExtractor {
/**
* Get style links as a string of `<link>` tags
*/
getStyleTags(): string[];
getStyleTags(): string;
/**
* Get style links as an array of React `<link>` elements

View File

@ -33,8 +33,8 @@ const {
// getLinkTags
{
// Should return an arary of strings
const tags: string[] = getLinkTags();
// Should return a string
const tags: string = getLinkTags();
}
// getScriptElements
@ -45,8 +45,8 @@ const {
// getScriptTags
{
// Should return an arary of strings
const tags: string[] = getScriptTags();
// Should return a string
const tags: string = getScriptTags();
}
// getStyleElements
@ -57,8 +57,8 @@ const {
// getStyleTags
{
// Should return an arary of strings
const tags: string[] = getStyleTags();
// Should return a string
const tags: string = getStyleTags();
}
// requireEntrypoint