🚧 Still under progress. Soon will be finished.

VariableDeclaration

INTERFACE code

Description

A variable declaration after being serialized

Properties

Name Type Description
kind DeclarationKind.Variable

The type of declaration

namespace string

The namespace name where the variable is defined

name string

Name of the property

line number

The start line number where the property is defined

type Type

The type of the property. If it’s an index signature, it will be the type of the object value.

default unknown

The default value

optional boolean

Whether it’s optional or not

decorators readonly Decorator[]

Any decorator that has been defined

jsDoc CommentPart[]

All the JSDoc comments