Home > @i2analyze/i2connect > records > ISeedEntityRecord > isType
records.ISeedEntityRecord.isType() method
Indicates whether the entity record has the specified type.
Signature:
isType<TEntityType extends schema.IEntityType>(entityType: TEntityType): this is ITypedSeedEntityRecord<TEntityType>;
Introduced: API version 2.0
Type Parameters
| Parameter | Type | Description |
|---|---|---|
| TEntityType | extends schema.IEntityType | The type of the entity type, which is inferred from the entityType parameter. |
Parameters
| Parameter | Type | Description |
|---|---|---|
| entityType | TEntityType | The entity type to compare the seed record against. |
Returns:
this is ITypedSeedEntityRecord<TEntityType>
true if the seed record has the specified type; false otherwise.