Add typed filters to Linear getAll helper (#517)
* Fix getAll params type * Changeset * Search param types * Update changeset
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@trigger.dev/linear": patch
|
||||
---
|
||||
|
||||
Fix `getAll` helper and search function params
|
||||
@@ -182,7 +182,7 @@ export class Linear implements TriggerIntegration {
|
||||
>(
|
||||
task: TTask,
|
||||
key: IntegrationTaskKey,
|
||||
params: Nullable<QueryVariables> = {}
|
||||
params: Parameters<TTask>[1] = {}
|
||||
): Promise<Awaited<ReturnType<TTask>>["nodes"]> {
|
||||
const boundTask = task.bind(this as any);
|
||||
|
||||
@@ -695,7 +695,7 @@ export class Linear implements TriggerIntegration {
|
||||
key: IntegrationTaskKey,
|
||||
params: {
|
||||
term: string;
|
||||
variables?: L.SearchDocumentsQueryVariables;
|
||||
variables?: Parameters<LinearClient["searchDocuments"]>[1];
|
||||
}
|
||||
): LinearReturnType<DocumentSearchPayload> {
|
||||
return this.runTask(
|
||||
@@ -862,7 +862,7 @@ export class Linear implements TriggerIntegration {
|
||||
key: IntegrationTaskKey,
|
||||
params: {
|
||||
term: string;
|
||||
variables?: L.SearchIssuesQueryVariables;
|
||||
variables?: Parameters<LinearClient["searchIssues"]>[1];
|
||||
}
|
||||
): LinearReturnType<IssueSearchPayload> {
|
||||
return this.runTask(
|
||||
@@ -1273,7 +1273,7 @@ export class Linear implements TriggerIntegration {
|
||||
key: IntegrationTaskKey,
|
||||
params: {
|
||||
term: string;
|
||||
variables?: L.SearchProjectsQueryVariables;
|
||||
variables?: Parameters<LinearClient["searchProjects"]>[1];
|
||||
}
|
||||
): LinearReturnType<ProjectSearchPayload> {
|
||||
return this.runTask(
|
||||
|
||||
Reference in New Issue
Block a user