Skip to content

yaksok.tsDocs


yaksok.ts / CannotReturnOutsideFunctionError

Class: CannotReturnOutsideFunctionError

Extends

  • YaksokError

Constructors

new CannotReturnOutsideFunctionError()

ts
new CannotReturnOutsideFunctionError(props): CannotReturnOutsideFunctionError

Parameters

props

props.position?: Position

Returns

CannotReturnOutsideFunctionError

Overrides

YaksokError.constructor

Defined in

src/error/function.ts:5

Properties

child?

ts
optional child: YaksokError<unknown>;

Inherited from

YaksokError.child

Defined in

src/error/common.ts:9


codeFile?

ts
optional codeFile: CodeFile;

Inherited from

YaksokError.codeFile

Defined in

src/error/common.ts:8


message

ts
message: string;

Inherited from

YaksokError.message

Defined in

node_modules/.deno/typescript@5.6.3/node_modules/typescript/lib/lib.es5.d.ts:1077


name

ts
name: string;

Inherited from

YaksokError.name

Defined in

node_modules/.deno/typescript@5.6.3/node_modules/typescript/lib/lib.es5.d.ts:1076


position?

ts
optional position: Position;

Inherited from

YaksokError.position

Defined in

src/error/common.ts:6


resource?

ts
optional resource: unknown;

Inherited from

YaksokError.resource

Defined in

src/error/common.ts:7


stack?

ts
optional stack: string;

Inherited from

YaksokError.stack

Defined in

node_modules/.deno/typescript@5.6.3/node_modules/typescript/lib/lib.es5.d.ts:1078