Preparing search index...
The search index is not available
Wayward Types Viewer | 2.14.0-beta.dev.20240903.1
Wayward Types Viewer
utilities/Optional
asInstance
Function asInstance
as
Instance
<
T
,
CLS
>
(
value
:
T
, cls
:
CLS
)
:
Extract
<
T
,
InstanceType
<
CLS
>
>
|
undefined
Type Parameters
T
CLS
extends
(
new
(
...
args
:
any
)
=>
any
)
Parameters
value:
T
cls:
CLS
Returns
Extract
<
T
,
InstanceType
<
CLS
>
>
|
undefined
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Navigation
Modding Guide
Module Index
Common Modules
@Register
IDoodadDescription
IItemDescription
ITerrainDescription
ITileEventDescription
ICreatureDescription
In This Module
Optional
as
Instance
as
Type
not
Instance
not
Type
Generated using
TypeDoc