Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions types/wasa/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
declare type fd = usize;
declare type path = string;

declare class Console {
/**
* Write a string to the console
Expand Down Expand Up @@ -71,8 +74,7 @@ declare class File {
data: usize;
grow(): File;
}
type fd = usize;
type path = string;


declare class Directory extends File {
parent: Directory;
Expand Down Expand Up @@ -100,3 +102,5 @@ declare class Filesystem {
writeString(fd: fd, data: string): void;
close(fd: number): void;
}

declare var fs: Filesystem;