fix: use bluemine imported types

This commit is contained in:
Julien Oculi 2024-01-15 21:31:31 +01:00
parent 866b602244
commit fda2ce9a00

View file

@ -3,7 +3,7 @@ import { CsvEntry } from '../type.ts';
import { toLogin } from '../utils.ts'; import { toLogin } from '../utils.ts';
async function addUsersToGroup(redmine: Redmine, csv: CsvEntry[]) { async function addUsersToGroup(redmine: Redmine, csv: CsvEntry[]) {
const users: { id: number; login: string }[] = [] const users: Redmine['users']['List']['Result']['users'] = []
for (const { firstname, lastname } of csv) { for (const { firstname, lastname } of csv) {
const login = toLogin(firstname, lastname) const login = toLogin(firstname, lastname)