UNPKG
@thesameeric/fileguard
Version:
latest (2.0.1)
2.0.1
2.0.0
1.1.2
1.1.1
1.1.0
1.0.0
A file validation library for node js
github.com/okiti/mercury
okiti/mercury
@thesameeric/fileguard
/
dist
/
index.d.ts
10 lines
(9 loc)
•
235 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
export
declare
class
FileGuard
{
file
:
any
;
errorMessage
:
string
[];
error
:
boolean
;
constructor
(
inputFile
:
any
);
type
(
allowedFileTypes
:
string
[]):
this
;
size
(
fileSize
:
number
):
this
;
private
errorHandler; }