Home > @i2analyze/i2connect > utility > SeedCallbackParameters
utility.SeedCallbackParameters type
A utility type to determine the callback parameters if a service supports seeds.
Signature:
type SeedCallbackParameters<T extends services.ISeedServiceConfig | services.ISemanticSeededServiceConfig> = T['seedConstraints'] extends services.ISeedConstraints<schema.IEntityType> | services.ISeedConstraints<schema.ILinkType> ? {
seeds: services.ISeeds;
} : T['semanticSeedConstraints'] extends services.ISemanticSeedConstraints ? {
semanticSeeds: SemanticPropertyTypeSeeds<T['semanticSeedConstraints']['semanticPropertyTypeIds']>;
} : unknown;
References: services.ISeedServiceConfig, services.ISemanticSeededServiceConfig, services.ISeedConstraints, schema.IEntityType, schema.ILinkType, services.ISeeds, services.ISemanticSeedConstraints, SemanticPropertyTypeSeeds
Introduced: API version 2.2
Type Parameters
Parameter | Type | Description |
---|---|---|
T | extends services.ISeedServiceConfig | services.ISemanticSeededServiceConfig | The type of service configuration. |