-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve(anyware): add concept of overloads (#1261)
- Loading branch information
1 parent
aad4cac
commit 4aea3bf
Showing
33 changed files
with
1,189 additions
and
574 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import type { Step } from './Step.js' | ||
|
||
export interface ExecutableStep extends Step { | ||
run: (params: any) => any | ||
export interface ExecutableStep extends Omit<Step, 'slots' | 'input' | 'output'> { | ||
slots?: Step.Slots | ||
run: Step.Runner<any, any, any> | ||
} | ||
|
||
export interface ExecutableStepRuntime extends Omit<ExecutableStep, 'input' | 'output'> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import type { ExecutableStep } from '../ExecutableStep.js' | ||
import type { Step } from '../Step.js' | ||
import type { Config } from './Config.js' | ||
import type { Result } from './Result.js' | ||
import type { PipelineSpec } from './Spec.js' | ||
|
||
export interface ExecutablePipeline { | ||
spec: PipelineSpec | ||
config: Config | ||
input: object | ||
output: Result | ||
steps: ExecutableStep[] | ||
stepsIndex: StepsIndex | ||
} | ||
|
||
export type StepsIndex<$Name extends Step.Name = Step.Name, $ExecutableStep extends ExecutableStep = ExecutableStep> = | ||
Map<$Name, $ExecutableStep> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export * from '../run/run.js' | ||
export * from './builder.js' | ||
export * from './createWithSpec.js' | ||
export * from './Executable.js' | ||
export * from './ExecutablePipeline.js' | ||
export * from './Result.js' | ||
export * from './Spec.js' |
Oops, something went wrong.