Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MLFile

Hierarchy

  • MLFile

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new MLFile(filePathOrContext: string, anonymous?: boolean, workspace?: string, name?: string): MLFile
  • Parameters

    • filePathOrContext: string

      A file path or context

    • Default value anonymous: boolean = false

      if 1st param is a context

    • Default value workspace: string = process.cwd()

      context of workspace

    • Default value name: string = "<AnonymousFile>"

      context of name

    Returns MLFile

Properties

Private #filePath

#filePath: string

Readonly anonymous

anonymous: boolean

Accessors

path

  • get path(): string
  • Returns string

Methods

Private _fetch

  • _fetch(): Promise<string>
  • Returns Promise<string>

getContext

  • getContext(): Promise<string>
  • Returns Promise<string>

isExist

  • isExist(): Promise<boolean>
  • Returns Promise<boolean>

Generated using TypeDoc