Skip to content

ElysiaFile

PropertyDescription
path-
AccessorDescription
stats-
type-
value-
MethodDescription
slice-
isElysiaFileBrand check on the private field: true for subclasses, and unlike instanceof it never walks the prototype chain, so no user trap runs

Defined in: elysia/dist/universal/file.d.ts:44

new ElysiaFile(path): ElysiaFile;

Defined in: elysia/dist/universal/file.d.ts:47

ParameterType
pathstring

ElysiaFile

path: string;

Defined in: elysia/dist/universal/file.d.ts:46

get stats(): Promise<Stats>;

Defined in: elysia/dist/universal/file.d.ts:53

Promise<Stats>


get type(): any;

Defined in: elysia/dist/universal/file.d.ts:56

any


get value(): BunFile | ReadStream;

Defined in: elysia/dist/universal/file.d.ts:54

BunFile | ReadStream

slice(start, end): BunFile | ReadStream;

Defined in: elysia/dist/universal/file.d.ts:55

ParameterType
startnumber
endnumber

BunFile | ReadStream


static isElysiaFile(value): value is ElysiaFile;

Defined in: elysia/dist/universal/file.d.ts:52

Brand check on the private field: true for subclasses, and unlike instanceof it never walks the prototype chain, so no user trap runs

ParameterType
valueunknown

value is ElysiaFile

Last updated:

Type to search the documentation.

    Up arrowDown arrow to navigateEnter to selectEscape to close