Skip to content

@advjs/monorepo / @advjs/types / AdvAst / Code

Interface: Code ​

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

Extends ​

  • Omit<MdAst.Code, "value">

Extended by ​

Properties ​

data? ​

optional data?: CodeData

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

Data associated with the mdast code (flow).

Inherited from ​

Omit.data


lang? ​

optional lang?: string | null

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

Language of computer code being marked up.

Inherited from ​

Omit.lang


meta? ​

optional meta?: string | null

Defined in: node_modules/.pnpm/@types+mdast@4.0.4/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 ​

Omit.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 ​

Omit.position


type ​

type: "code"

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

Node type of mdast code (flow).

Overrides ​

Omit.type


value ​

value: string | CodeOperation[] | null

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