File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 115
115
116
116
## Module Node.FS.Sync
117
117
118
+ ### Types
119
+
120
+ type BufferLength = Number
121
+
122
+ type BufferOffset = Number
123
+
124
+ type ByteCount = Number
125
+
126
+ data FileDescriptor :: *
127
+
128
+ data FileFlags where
129
+ R :: FileFlags
130
+ R_PLUS :: FileFlags
131
+ RS :: FileFlags
132
+ RS_PLUS :: FileFlags
133
+ W :: FileFlags
134
+ WX :: FileFlags
135
+ W_PLUS :: FileFlags
136
+ WX_PLUS :: FileFlags
137
+ A :: FileFlags
138
+ AX :: FileFlags
139
+ A_PLUS :: FileFlags
140
+ AX_PLUS :: FileFlags
141
+
142
+ type FileMode = Number
143
+
144
+ type FilePosition = Number
145
+
146
+
118
147
### Values
119
148
120
149
appendFile :: forall eff. FilePath -> Buffer -> Eff (err :: Exception, fs :: FS | eff) Unit
127
156
128
157
exists :: forall eff. FilePath -> Eff (fs :: FS | eff) Boolean
129
158
159
+ fdAppend :: forall eff. FileDescriptor -> Buffer -> Eff (fs :: FS, err :: Exception | eff) ByteCount
160
+
161
+ fdClose :: forall eff. FileDescriptor -> Eff (fs :: FS, err :: Exception | eff) Unit
162
+
163
+ fdFlush :: forall eff. FileDescriptor -> Eff (fs :: FS, err :: Exception | eff) Unit
164
+
165
+ fdNext :: forall eff. FileDescriptor -> Buffer -> Eff (fs :: FS, err :: Exception | eff) ByteCount
166
+
167
+ fdOpen :: forall opts eff. FilePath -> FileFlags -> Maybe FileMode -> Eff (fs :: FS, err :: Exception | eff) FileDescriptor
168
+
169
+ fdRead :: forall eff. FileDescriptor -> Buffer -> BufferOffset -> BufferLength -> Maybe FilePosition -> Eff (fs :: FS, err :: Exception | eff) ByteCount
170
+
171
+ fdWrite :: forall eff. FileDescriptor -> Buffer -> BufferOffset -> BufferLength -> Maybe FilePosition -> Eff (fs :: FS, err :: Exception | eff) ByteCount
172
+
130
173
link :: forall eff. FilePath -> FilePath -> Eff (err :: Exception, fs :: FS | eff) Unit
131
174
132
175
mkdir :: forall eff. FilePath -> Eff (err :: Exception, fs :: FS | eff) Unit
You can’t perform that action at this time.
0 commit comments