Skip to content

Commit

Permalink
refactor: rename File class to FileAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
zimuya4153 committed Jan 4, 2025
1 parent 9d8ee00 commit d824f19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dts/API/File.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference path="../index.d.ts"/>

declare class File {
declare class FileAPI {
private constructor();

/** 读取文件 */
Expand Down
2 changes: 1 addition & 1 deletion src/API/FileAPI.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace jse {

ClassDefine<FileAPI> FileAPI::builder = defineClass<FileAPI>("File")
ClassDefine<FileAPI> FileAPI::builder = defineClass<FileAPI>("FileAPI")
.constructor(nullptr)
.instanceFunction("toString", &FileAPI::toString)
.function("readFile", &FileAPI::readFile)
Expand Down

0 comments on commit d824f19

Please sign in to comment.