Search
Preparing search index...
The search index is not available
fs-pro
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"Shape"
Module "Shape"
Index
Classes
Shape
Type aliases
Old
Rest
Shape
Dir
Shape
File
Shape
File
Pattern
Shape
Obj
Shape
Obj
Rest
Shape
Obj
Without
Name
With
Rest
create
Events
err
Arr
switch
ToShape
Inst
Ref
Variables
__rest
name_
sym
Functions
check
convert
Pattern
ToRegex
convert
Shape
File
ToPattern
create
Event
Register
create
Shape
Inst
err
Array
is
Err
Arr
is
Shape
Dir
is
Shape
File
is
Shape
File
Pattern
to
File
OrDir
validate
Type aliases
Old
Rest
Old
Rest
:
{
__rest
:
ShapeObj
|
ShapeFile
|
ShapeDir
}
Type declaration
__rest
:
ShapeObj
|
ShapeFile
|
ShapeDir
Shape
Dir
Shape
Dir
:
{
filePattern
:
ShapeFilePattern
;
name
:
string
;
type
:
1
}
Type declaration
file
Pattern
:
ShapeFilePattern
name
:
string
type
:
1
Shape
File
Shape
File
:
{
base
:
string
;
defaultContent
?:
string
|
BufferType
;
type
:
0
;
validator
?:
undefined
|
(
(
this
:
File
)
=>
Error
[]
|
void
)
}
Type declaration
base
:
string
Optional
default
Content
?:
string
|
BufferType
type
:
0
Optional
validator
?:
undefined
|
(
(
this
:
File
)
=>
Error
[]
|
void
)
Shape
File
Pattern
Shape
File
Pattern
:
{
defaultContent
?:
string
|
BufferType
;
regex
:
RegExp
;
type
:
2
;
validator
?:
undefined
|
(
(
this
:
File
)
=>
Error
[]
|
void
)
}
Type declaration
Optional
default
Content
?:
string
|
BufferType
regex
:
RegExp
type
:
2
Optional
validator
?:
undefined
|
(
(
this
:
File
)
=>
Error
[]
|
void
)
Shape
Obj
Shape
Obj
:
ShapeObjWithoutName
&
{
__computed
?:
undefined
|
string
}
Shape
Obj
Rest
Shape
Obj
Rest
:
ShapeObjWithoutName
&
OldRest
Shape
Obj
Without
Name
Shape
Obj
Without
Name
:
{
__computed
?:
ShapeFilePattern
|
ShapeObj
}
Type declaration
[
key:
string
]:
ShapeObj
|
ShapeFile
|
ShapeDir
Optional
__computed
?:
ShapeFilePattern
|
ShapeObj
With
Rest
With
Rest<T>
:
T
&
OldRest
Type parameters
T
:
ShapeObj
create
Events
create
Events
:
{
onCreate
?:
undefined
|
(
(
thing
:
File
|
Dir
)
=>
void
)
;
onCreateDir
?:
undefined
|
(
(
thing
:
Dir
)
=>
void
)
;
onCreateFile
?:
undefined
|
(
(
file
:
File
)
=>
void
)
}
Type declaration
Optional
on
Create
?:
undefined
|
(
(
thing
:
File
|
Dir
)
=>
void
)
Optional
on
Create
Dir
?:
undefined
|
(
(
thing
:
Dir
)
=>
void
)
Optional
on
Create
File
?:
undefined
|
(
(
file
:
File
)
=>
void
)
err
Arr
err
Arr
:
{
arr
:
fsProErr
[]
;
push
:
(
err
?:
fsProErr
|
errArr
)
=>
void
}
Type declaration
arr
:
fsProErr
[]
push
:
(
err
?:
fsProErr
|
errArr
)
=>
void
(
err
?:
fsProErr
|
errArr
)
:
void
Parameters
Optional
err:
fsProErr
|
errArr
Returns
void
switch
ToShape
Inst
Ref
switch
ToShape
Inst
Ref<T>
:
{}
&
{
__dir
:
Dir
}
Type parameters
T
:
ShapeObj
Variables
Const
__rest
__rest
:
unique symbol
= Symbol("__rest")
Const
name_
sym
name_
sym
:
unique symbol
= Symbol("__name")
Functions
check
check
(
currentObj
:
ShapeObj
|
ShapeFile
|
ShapeDir
|
ShapeFilePattern
, fileOrDir
:
File
|
Dir
, crash
:
boolean
)
:
any
Parameters
currentObj:
ShapeObj
|
ShapeFile
|
ShapeDir
|
ShapeFilePattern
fileOrDir:
File
|
Dir
crash:
boolean
Returns
any
convert
Pattern
ToRegex
convert
Pattern
ToRegex
(
pattern
:
string
, firstCall
:
boolean
)
:
[
]
Parameters
pattern:
string
firstCall:
boolean
Returns
[
]
convert
Shape
File
ToPattern
convert
Shape
File
ToPattern
(
o
:
ShapeFile
, warn
?:
boolean
)
:
ShapeFilePattern
Parameters
o:
ShapeFile
Default value
warn:
boolean
= false
Returns
ShapeFilePattern
create
Event
Register
create
Event
Register
(
eventsListeners
?:
createEvents
)
:
(Anonymous function)
Parameters
Optional
eventsListeners:
createEvents
Returns
(Anonymous function)
create
Shape
Inst
create
Shape
Inst
(
shapeObj
:
ShapeObj
, path
:
string
, eventsListeners
?:
createEvents
)
:
any
Parameters
shapeObj:
ShapeObj
path:
string
Optional
eventsListeners:
createEvents
Returns
any
err
Array
err
Array
(
crash
:
boolean
)
:
errArr
Parameters
crash:
boolean
Returns
errArr
Const
is
Err
Arr
is
Err
Arr
(
obj
?:
any
)
:
obj
is
errArr
Parameters
Optional
obj:
any
Returns
obj
is
errArr
Const
is
Shape
Dir
is
Shape
Dir
(
obj
:
any
)
:
obj
is
ShapeDir
Parameters
obj:
any
Returns
obj
is
ShapeDir
Const
is
Shape
File
is
Shape
File
(
obj
:
any
)
:
obj
is
ShapeFile
Parameters
obj:
any
Returns
obj
is
ShapeFile
Const
is
Shape
File
Pattern
is
Shape
File
Pattern
(
obj
:
any
)
:
obj
is
ShapeFilePattern
Parameters
obj:
any
Returns
obj
is
ShapeFilePattern
to
File
OrDir
to
File
OrDir
(
path
:
string
)
:
any
Parameters
path:
string
Returns
any
validate
validate
(
path
:
string
, shapeObj
:
ShapeObj
, crash
?:
boolean
)
:
{
arr
:
fsProErr
[]
;
push
:
(
err
?:
fsProErr
|
errArr
)
=>
void
}
Parameters
path:
string
shapeObj:
ShapeObj
Default value
crash:
boolean
= false
Returns
{
arr
:
fsProErr
[]
;
push
:
(
err
?:
fsProErr
|
errArr
)
=>
void
}
arr
:
fsProErr
[]
push
:
(
err
?:
fsProErr
|
errArr
)
=>
void
(
err
?:
fsProErr
|
errArr
)
:
void
Parameters
Optional
err:
fsProErr
|
errArr
Returns
void
Globals
"
Shape"
"buffer"
"dir"
"file"
"fs"
"fs
Pro
Err"
"path"
"plugin
Adder"
"types"
Shape
Old
Rest
Shape
Dir
Shape
File
Shape
File
Pattern
Shape
Obj
Shape
Obj
Rest
Shape
Obj
Without
Name
With
Rest
create
Events
err
Arr
switch
ToShape
Inst
Ref
__rest
name_
sym
check
convert
Pattern
ToRegex
convert
Shape
File
ToPattern
create
Event
Register
create
Shape
Inst
err
Array
is
Err
Arr
is
Shape
Dir
is
Shape
File
is
Shape
File
Pattern
to
File
OrDir
validate
Generated using
TypeDoc