Skip to content

Commit 1676496

Browse files
committed
chore: fix lint issue
1 parent 308b987 commit 1676496

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/runtime.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ export interface RendererContext extends Required<RenderOptions> {
3535
updateManifest: (manifest: Manifest) => void
3636
}
3737

38+
interface LinkAttributes {
39+
rel: string | null
40+
href: string
41+
as?: string | null
42+
type?: string | null
43+
crossorigin?: '' | null
44+
}
45+
3846
const defaultShouldPrefetch = () => true
3947
const defaultShouldPreload = (resource: ResourceMeta) => ['module', 'script', 'style'].includes(resource.resourceType || '')
4048

@@ -269,14 +277,6 @@ export function createRenderer (createApp: any, renderOptions: RenderOptions & {
269277

270278
// --- Internal ---
271279

272-
interface LinkAttributes {
273-
rel: string | null
274-
href: string
275-
as?: string | null
276-
type?: string | null
277-
crossorigin?: '' | null
278-
}
279-
280280
// Utilities to render script and link tags, and link headers
281281
function renderScriptToString (attrs: Record<string, string | null>) {
282282
return `<script${Object.entries(attrs).map(([key, value]) => value === null ? '' : value ? ` ${key}="${value}"` : ' ' + key).join('')}></script>`

0 commit comments

Comments
 (0)