Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

SfcSection

interfaz

Una sección SFC con posiciones conservadas en el archivo fuente.

ts
import type { SfcSection } from "@meekojs/meeko/parse";

Source code src/compiler/parser/sfc.ts:65

Declaración #

ts
interface SfcSection {
	name: 'script' | 'server' | 'template' | 'style'
	start: number
	end: number
	content: string
	contentStart: number
	contentEnd: number
	attributes: ReadonlyArray<{ name: string; value: string }>
	implicit?: true
}

Propiedades #

name #

propiedad

name: 'script' | 'server' | 'template' | 'style'

start #

propiedad

start: number

end #

propiedad

end: number

content #

propiedad

content: string

contentStart #

propiedad

contentStart: number

contentEnd #

propiedad

contentEnd: number

attributes #

propiedad

attributes: ReadonlyArray<{ name: string; value: string }>

implicit #

propiedad opcional

implicit?: true

The file has no such section: an empty <script lang="ts"> stands in for it, at the start of the <template>, with no source text. Tools that edit or print sections skip it.

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/compiler/parser/sfc.ts