Skip to content

Commit

Permalink
doc: add some doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
not-my-profile committed Jun 5, 2023
1 parent 8e1a830 commit 29db4a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ export interface Options {
export type Loader = (path: string) => Promise<Data>;

export class Entry {
/** The name of the file/dir. */
name: string;
/** The normalized path of the file/dir. */
path: string;
/** The type of the entry. */
type: EntryType;
/** The absolute file path. */
src: string;
/** The children of the entry. */
children = new Map<string, Entry>();
/** Temporary flags that are cleared when a file is modified. */
flags = new Set<string>();
#content = new Map<Loader, Promise<Data> | Data>();
#info?: Deno.FileInfo;
Expand Down
1 change: 1 addition & 0 deletions core/writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export default class Writer {

/**
* Copy the static files in the dest folder
* Returns the static files that have been successfully copied
*/
async copyFiles(files: StaticFile[]): Promise<StaticFile[]> {
const copyFiles: StaticFile[] = [];
Expand Down

0 comments on commit 29db4a3

Please sign in to comment.