Skip to content

Commit ed22450

Browse files
CopilotDevilTea
andcommitted
fix: fix TypeScript strict mode type check issues for CI
Co-authored-by: DevilTea <16652879+DevilTea@users.noreply.github.com>
1 parent e09b59b commit ed22450

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/internal/src/core/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export function createPipeExecutor(
115115
return result
116116
}
117117
// Execute step synchronously
118-
result = runtimeSteps[i](result)
118+
result = runtimeSteps[i]!(result)
119119
}
120120
return result
121121
}

packages/internal/src/steps/intersection/intersection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const intersection = implStepPlugin<PluginDef>({
9494
if (isInvalid)
9595
break
9696

97-
const branchResult = branches[i]['~execute'](value)
97+
const branchResult = branches[i]!['~execute'](value)
9898

9999
if (branchResult instanceof Promise) {
100100
// Hit async, chain remaining branches
@@ -104,7 +104,7 @@ export const intersection = implStepPlugin<PluginDef>({
104104
})
105105

106106
for (let j = i + 1; j < len; j++) {
107-
const jBranch = branches[j]
107+
const jBranch = branches[j]!
108108
chain = chain.then((invalid) => {
109109
if (invalid)
110110
return true

packages/internal/src/steps/union/union.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const union = implStepPlugin<PluginDef>({
9292

9393
// Try each branch synchronously until we hit async or find success
9494
for (let i = 0; i < len; i++) {
95-
const branchResult = branches[i]['~execute'](value)
95+
const branchResult = branches[i]!['~execute'](value)
9696

9797
if (branchResult instanceof Promise) {
9898
// Hit async, chain remaining branches
@@ -104,7 +104,7 @@ export const union = implStepPlugin<PluginDef>({
104104
})
105105

106106
for (let j = i + 1; j < len; j++) {
107-
const jBranch = branches[j]
107+
const jBranch = branches[j]!
108108
chain = chain.then((result) => {
109109
if (result.success)
110110
return result

0 commit comments

Comments
 (0)