Skip to content

Interface: ModelInput

Defined in: emitters/json/src/index.ts:18

Either a CSS source or an already-parsed model.

Extended by

Properties

configuration?

ts
optional configuration?: CssDocConfiguration;

Defined in: emitters/json/src/index.ts:24

The tag configuration to parse css with.


css?

ts
optional css?: string | string[];

Defined in: emitters/json/src/index.ts:20

CSS source (one string or several concatenated) to parse.


dialect?

ts
optional dialect?: CssDialect;

Defined in: emitters/json/src/index.ts:28

The stylesheet dialect of css (scss/less pick a dialect parser). Default css.


entries?

ts
optional entries?: CssDocEntry[];

Defined in: emitters/json/src/index.ts:22

An already-parsed model (takes precedence over css).


lang?

ts
optional lang?: "css" | "html" | "js" | "markdown";

Defined in: emitters/json/src/index.ts:26

The host language css is written in. Non-css values extract embedded CSS first. Default css.

Released under the MIT License