Cloud API Overview > @adpt/cloud > docker > hasId
docker.hasId() function
Type guard for determining whether a given object has a non-null id
property.
Signature:
export declare function hasId<T extends {
id?: ImageIdString;
}>(o: T): o is WithId<T>;
Parameters
Parameter | Type | Description |
---|---|---|
o | T |
Returns:
o is WithId<T>