A Fragment which represents a structure.
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
inputs | readonly | readonly ParamType [] | The inputs for the fragment. | NamedFragment .inputs |
name | readonly | string | The name of the fragment. | NamedFragment .name |
type | readonly | FragmentType | The type of the fragment. | NamedFragment .type |
Returns a string representation of this struct as format
.
string
Returns a new StructFragment for obj
.
Parameter | Type |
---|---|
obj | any |
Returns true if value
is a ConstructorFragment.
Parameter | Type |
---|---|
value | any |
value is ConstructorFragment
Returns true if value
is an ErrorFragment.
Parameter | Type |
---|---|
value | any |
value is ErrorFragment
Returns true if value
is an EventFragment.
Parameter | Type |
---|---|
value | any |
value is EventFragment
Returns true
and provides a type guard if value
is a StructFragment.
Parameter | Type |
---|---|
value | any |
value is FunctionFragment
Returns true if value
is a FunctionFragment.
Parameter | Type |
---|---|
value | any |
value is FunctionFragment
Returns true if value
is a StructFragment.
Parameter | Type |
---|---|
value | any |
value is StructFragment
A Fragment which represents a structure.
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
inputs | readonly | readonly ParamType [] | The inputs for the fragment. | NamedFragment .inputs |
name | readonly | string | The name of the fragment. | NamedFragment .name |
type | readonly | FragmentType | The type of the fragment. | NamedFragment .type |
Returns a string representation of this struct as format
.
string
Returns a new StructFragment for obj
.
Parameter | Type |
---|---|
obj | any |
Returns true if value
is a ConstructorFragment.
Parameter | Type |
---|---|
value | any |
value is ConstructorFragment
Returns true if value
is an ErrorFragment.
Parameter | Type |
---|---|
value | any |
value is ErrorFragment
Returns true if value
is an EventFragment.
Parameter | Type |
---|---|
value | any |
value is EventFragment
Returns true
and provides a type guard if value
is a StructFragment.
Parameter | Type |
---|---|
value | any |
value is FunctionFragment
Returns true if value
is a FunctionFragment.
Parameter | Type |
---|---|
value | any |
value is FunctionFragment
Returns true if value
is a StructFragment.
Parameter | Type |
---|---|
value | any |
value is StructFragment