Skip to content

API > AdvAst > CodeFunction

Interface: CodeFunction

Contents

Extends

Properties

data

data?: CodeData

Data associated with the mdast code (flow).

Inherited from

Code.data

Source

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


lang

lang?: null | string

Language of computer code being marked up.

Inherited from

Code.lang

Source

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


meta

meta?: null | string

Custom information relating to the node.

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

Inherited from

Code.meta

Source

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


position

position?: Position

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

Source

node_modules/.pnpm/@types+unist@3.0.2/node_modules/@types/unist/index.d.ts:103


type

type: "code"

Overrides

Code.type

Source

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


value

value: string

Overrides

Code.value

Source

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


Generated using typedoc-plugin-markdown and TypeDoc