Message.
Error
new VFileMessage(
reason
,options
?):VFileMessage
Parameter | Type |
---|---|
reason | string |
options ? | null | Options |
Error.constructor
node_modules/vfile-message/lib/index.d.ts:5
new VFileMessage(
reason
,parent
,origin
?):VFileMessage
Parameter | Type |
---|---|
reason | string |
parent | undefined | null | Node | NodeLike |
origin ? | null | string |
Error.constructor
node_modules/vfile-message/lib/index.d.ts:6
new VFileMessage(
reason
,place
,origin
?):VFileMessage
Parameter | Type |
---|---|
reason | string |
place | undefined | null | Position | Point |
origin ? | null | string |
Error.constructor
node_modules/vfile-message/lib/index.d.ts:11
new VFileMessage(
reason
,origin
?):VFileMessage
Parameter | Type |
---|---|
reason | string |
origin ? | null | string |
Error.constructor
node_modules/vfile-message/lib/index.d.ts:16
new VFileMessage(
cause
,parent
,origin
?):VFileMessage
Parameter | Type |
---|---|
cause | Error | VFileMessage |
parent | undefined | null | Node | NodeLike |
origin ? | null | string |
Error.constructor
node_modules/vfile-message/lib/index.d.ts:17
new VFileMessage(
cause
,place
,origin
?):VFileMessage
Parameter | Type |
---|---|
cause | Error | VFileMessage |
place | undefined | null | Position | Point |
origin ? | null | string |
Error.constructor
node_modules/vfile-message/lib/index.d.ts:22
new VFileMessage(
cause
,origin
?):VFileMessage
Parameter | Type |
---|---|
cause | Error | VFileMessage |
origin ? | null | string |
Error.constructor
node_modules/vfile-message/lib/index.d.ts:27
actual:
undefined
|string
Specify the source value that’s being reported, which is deemed incorrect.
node_modules/vfile-message/lib/index.d.ts:92
ancestors:
undefined
|Node
[]
Stack of ancestor nodes surrounding the message.
node_modules/vfile-message/lib/index.d.ts:33
optional
cause:unknown
Error.cause
node_modules/typescript/lib/lib.es2022.error.d.ts:26
column:
undefined
|number
Starting column of message.
node_modules/vfile-message/lib/index.d.ts:39
expected:
undefined
|string
[]
Suggest acceptable values that can be used instead of actual
.
node_modules/vfile-message/lib/index.d.ts:98
fatal:
undefined
|null
|boolean
State of problem.
true
— error, file not usablefalse
— warning, change may be neededundefined
— change likely not needednode_modules/vfile-message/lib/index.d.ts:49
file:
undefined
|string
Path of a file (used throughout the VFile
ecosystem).
node_modules/vfile-message/lib/index.d.ts:55
line:
undefined
|number
Starting line of error.
node_modules/vfile-message/lib/index.d.ts:61
message:
string
Error.message
node_modules/typescript/lib/lib.es5.d.ts:1077
name:
string
Error.name
node_modules/typescript/lib/lib.es5.d.ts:1076
note:
undefined
|string
Long form description of the message (you should use markdown).
node_modules/vfile-message/lib/index.d.ts:104
Place of message.
node_modules/vfile-message/lib/index.d.ts:67
reason:
string
Reason for message, should use markdown.
node_modules/vfile-message/lib/index.d.ts:73
ruleId:
undefined
|string
Category of message (example: 'my-rule'
).
node_modules/vfile-message/lib/index.d.ts:79
source:
undefined
|string
Namespace of message (example: 'my-package'
).
node_modules/vfile-message/lib/index.d.ts:85
optional
stack:string
Error.stack
node_modules/typescript/lib/lib.es5.d.ts:1078
url:
undefined
|string
Link to docs for the message.
👉 Note: this must be an absolute URL that can be passed as
x
tonew URL(x)
.
node_modules/vfile-message/lib/index.d.ts:113
static
optional
prepareStackTrace: (err
,stackTraces
) =>any
Optional override for formatting stack traces
Parameter | Type |
---|---|
err | Error |
stackTraces | CallSite [] |
any
https://v8.dev/docs/stack-trace-api#customizing-stack-traces
Error.prepareStackTrace
node_modules/@types/node/globals.d.ts:98
static
stackTraceLimit:number
Error.stackTraceLimit
node_modules/@types/node/globals.d.ts:100
static
captureStackTrace(targetObject
,constructorOpt
?):void
Create .stack property on a target object
Parameter | Type |
---|---|
targetObject | object |
constructorOpt ? | Function |
void
Error.captureStackTrace
node_modules/@types/node/globals.d.ts:91
static
captureStackTrace(targetObject
,constructorOpt
?):void
Create .stack property on a target object
Parameter | Type |
---|---|
targetObject | object |
constructorOpt ? | Function |
void
Error.captureStackTrace
node_modules/bun-types/globals.d.ts:1630