mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Fix definitions for loadable-server
This commit is contained in:
parent
55dbfec2eb
commit
e1a49e9bc8
6
types/loadable__server/index.d.ts
vendored
6
types/loadable__server/index.d.ts
vendored
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user