Skip to content

@advjs/monorepo / types/src / AdvAst / CodeFunction

Interface: CodeFunction

Defined in: packages/types/src/ast/index.ts:124

Extends

Properties

data?

optional data: CodeData

Defined in: node_modules/.pnpm/@types+mdast@4.0.3/node_modules/@types/mdast/index.d.ts:574

Data associated with the mdast code (flow).

Inherited from

Code.data


lang?

optional lang: null | string

Defined in: node_modules/.pnpm/@types+mdast@4.0.3/node_modules/@types/mdast/index.d.ts:564

Language of computer code being marked up.

Inherited from

Code.lang


meta?

optional meta: null | string

Defined in: node_modules/.pnpm/@types+mdast@4.0.3/node_modules/@types/mdast/index.d.ts:570

Custom information relating to the node.

If the lang field is present, a meta field can be present.

Inherited from

Code.meta


position?

optional position: Position

Defined in: node_modules/.pnpm/@types+unist@3.0.3/node_modules/@types/unist/index.d.ts:103

Position of a node in a source document.

Nodes that are generated (not in the original source document) must not have a position.

Inherited from

Code.position


type

type: "code"

Defined in: packages/types/src/ast/index.ts:125

Node type of mdast code (flow).

Overrides

Code.type


value

value: string

Defined in: packages/types/src/ast/index.ts:126

Overrides

Code.value