Skip to content

Proposal Change File definition to FS or FileSystem #1

@qinyuhang

Description

@qinyuhang

index.d.ts line 306.
These function is fs related. I believe change to FileSystem is a better name.

    export interface File {
      list(
        path: string,
        options: Partial<{ includeSubDir: boolean }>,
      ): { filename: string; path: string; isDir: boolean };
      exists(path: string): boolean;
      write(path: string, content: string): void;
      read(path: string, options: Partial<{}>): string | undefined;
      trash(path: string): void;
      delete(path: string): void;
      revealInFinder(path: string): void;
      handle(path: string, mode: string): FileHandle;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions