View on GitHub

js-ts-monorepos

Home > @shlack/types > isTeam

isTeam() function

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Check whether a given value is an ITeam

Signature:

export declare function isTeam(arg: any): arg is ITeam;

Parameters

Parameter Type Description
arg any value to check

Returns:

arg is ITeam

Example

Here’s an example of how to use this guard

const team = { id: 'li', name: 'LinkedIn' };
isTeam(team); // true