@servicenow/sdk - v4.4.1
Preparing search index...
@servicenow/sdk/api
<internal>
Project
Interface Project
interface
Project
{
addFile
(
file
:
{
content
:
string
;
path
:
string
}
,
options
?:
{
excludeFromCompiler
?:
boolean
;
resolveDependencies
?:
boolean
}
,
)
:
ProjectFile
;
addFile
(
path
:
string
,
options
?:
{
excludeFromCompiler
?:
boolean
;
resolveDependencies
?:
boolean
}
,
)
:
ProjectFile
;
findFile
(
nameOrPredicate
:
|
string
|
(
(
entry
:
[
path
:
string
,
file
:
ProjectFile
]
)
=>
boolean
)
,
)
:
ProjectFile
|
undefined
;
getFile
(
path
:
string
)
:
ProjectFile
;
getFileIfExists
(
path
:
string
)
:
ProjectFile
|
undefined
;
getFiles
()
:
ProjectFile
[]
;
getFluentDir
()
:
string
;
getMetadataDir
()
:
string
;
getRootDir
()
:
string
;
getServerDir
()
:
string
;
isInDir
(
dir
:
string
,
path
:
string
)
:
boolean
;
isInFluentDir
(
path
:
string
)
:
boolean
;
isInMetadataDir
(
path
:
string
)
:
boolean
;
isInRootDir
(
path
:
string
)
:
boolean
;
isInServerDir
(
path
:
string
)
:
boolean
;
isTypesGenerationMode
()
:
boolean
;
removeFile
(
fileOrPath
:
string
|
ProjectFile
)
:
void
;
resolvePath
(
...
paths
:
string
[]
)
:
string
;
}
Implemented by
Project
Index
Methods
add
File
find
File
get
File
get
File
If
Exists
get
Files
get
Fluent
Dir
get
Metadata
Dir
get
Root
Dir
get
Server
Dir
is
In
Dir
is
In
Fluent
Dir
is
In
Metadata
Dir
is
In
Root
Dir
is
In
Server
Dir
is
Types
Generation
Mode
remove
File
resolve
Path
Methods
add
File
addFile
(
file
:
{
content
:
string
;
path
:
string
}
,
options
?:
{
excludeFromCompiler
?:
boolean
;
resolveDependencies
?:
boolean
}
,
)
:
ProjectFile
Parameters
file
:
{
content
:
string
;
path
:
string
}
Optional
options
:
{
excludeFromCompiler
?:
boolean
;
resolveDependencies
?:
boolean
}
Returns
ProjectFile
addFile
(
path
:
string
,
options
?:
{
excludeFromCompiler
?:
boolean
;
resolveDependencies
?:
boolean
}
,
)
:
ProjectFile
Parameters
path
:
string
Optional
options
:
{
excludeFromCompiler
?:
boolean
;
resolveDependencies
?:
boolean
}
Returns
ProjectFile
find
File
findFile
(
nameOrPredicate
:
|
string
|
(
(
entry
:
[
path
:
string
,
file
:
ProjectFile
]
)
=>
boolean
)
,
)
:
ProjectFile
|
undefined
Parameters
nameOrPredicate
:
string
|
(
(
entry
:
[
path
:
string
,
file
:
ProjectFile
]
)
=>
boolean
)
Returns
ProjectFile
|
undefined
get
File
getFile
(
path
:
string
)
:
ProjectFile
Parameters
path
:
string
Returns
ProjectFile
get
File
If
Exists
getFileIfExists
(
path
:
string
)
:
ProjectFile
|
undefined
Parameters
path
:
string
Returns
ProjectFile
|
undefined
get
Files
getFiles
()
:
ProjectFile
[]
Returns
ProjectFile
[]
get
Fluent
Dir
getFluentDir
()
:
string
Returns
string
get
Metadata
Dir
getMetadataDir
()
:
string
Returns
string
get
Root
Dir
getRootDir
()
:
string
Returns
string
get
Server
Dir
getServerDir
()
:
string
Returns
string
is
In
Dir
isInDir
(
dir
:
string
,
path
:
string
)
:
boolean
Parameters
dir
:
string
path
:
string
Returns
boolean
is
In
Fluent
Dir
isInFluentDir
(
path
:
string
)
:
boolean
Parameters
path
:
string
Returns
boolean
is
In
Metadata
Dir
isInMetadataDir
(
path
:
string
)
:
boolean
Parameters
path
:
string
Returns
boolean
is
In
Root
Dir
isInRootDir
(
path
:
string
)
:
boolean
Parameters
path
:
string
Returns
boolean
is
In
Server
Dir
isInServerDir
(
path
:
string
)
:
boolean
Parameters
path
:
string
Returns
boolean
is
Types
Generation
Mode
isTypesGenerationMode
()
:
boolean
Returns
boolean
remove
File
removeFile
(
fileOrPath
:
string
|
ProjectFile
)
:
void
Parameters
fileOrPath
:
string
|
ProjectFile
Returns
void
resolve
Path
resolvePath
(
...
paths
:
string
[]
)
:
string
Parameters
...
paths
:
string
[]
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
add
File
find
File
get
File
get
File
If
Exists
get
Files
get
Fluent
Dir
get
Metadata
Dir
get
Root
Dir
get
Server
Dir
is
In
Dir
is
In
Fluent
Dir
is
In
Metadata
Dir
is
In
Root
Dir
is
In
Server
Dir
is
Types
Generation
Mode
remove
File
resolve
Path
@servicenow/sdk - v4.4.1
Loading...