0
Get Teams
One script reply has been approved by the moderators Verified

Get all the teams. See the docs here

Created by paulbarretz 930 days ago Viewed 3420 times
0
Submitted by hugo697 Bun
Verified 230 days ago
1
import { LinearClient } from '@linear/sdk'
2

3
type Linear = {
4
	apiKey: string
5
}
6

7
export async function main(resource: Linear, teamId: string) {
8
	const linearClient = new LinearClient({ apiKey: resource.apiKey })
9

10
	const getTeams = await linearClient.team(teamId)
11

12
	return getTeams
13
}
14