@ffmpeg/types
Advanced tools
Comparing version 0.12.0-alpha.0 to 0.12.0-alpha.1
{ | ||
"name": "@ffmpeg/types", | ||
"version": "0.12.0-alpha.0", | ||
"version": "0.12.0-alpha.1", | ||
"description": "ffmpeg.wasm types", | ||
@@ -32,3 +32,3 @@ "types": "types", | ||
}, | ||
"gitHead": "63a6732f6f45b4259cc32403e554b356188685a6" | ||
"gitHead": "05635c1276f4a83416af6b37fcdab1922269c58c" | ||
} |
// TODO: Add lint and test. | ||
export type Pointer = number; | ||
export type StringPointer = Pointer; | ||
export type StringArrayPointer = Pointer; | ||
export type DateString = string; | ||
@@ -11,2 +13,18 @@ export interface ReadFileOptions { | ||
export interface Stat { | ||
dev: number; | ||
ino: number; | ||
mode: number; | ||
nlink: number; | ||
uid: number; | ||
gid: number; | ||
rdev: number; | ||
size: number; | ||
atime: DateString; | ||
mtime: DateString; | ||
ctime: DateString; | ||
blksize: number; | ||
blocks: number; | ||
} | ||
export interface FS { | ||
@@ -20,2 +38,5 @@ mkdir: (path: string) => void; | ||
unlink: (path: string) => void; | ||
stat: (path: string) => Stat; | ||
isFile: (mode: number) => boolean; | ||
isDir: (mode: number) => boolean; | ||
} | ||
@@ -22,0 +43,0 @@ |
3349
57