Skip to content

Commit 7d02277

Browse files
authored
feat(framework): export param types fixes NV-7261 (#10407)
1 parent 8bdf4bc commit 7d02277

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

packages/framework/src/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ export type {
99
InAppStepResolver,
1010
PushStepResolver,
1111
SmsStepResolver,
12+
StepResolverContext,
1213
} from './resources/step-resolver/step';
1314
export { step } from './resources/step-resolver/step';
1415
export { providerSchemas } from './schemas';
1516
export { ClientOptions, SeverityLevelEnum, Workflow } from './types';
17+
export type { ContextResolved } from './types/context.types';
18+
export type { Subscriber } from './types/subscriber.types';
19+
export type { ExecuteInput } from './types/workflow.types';

packages/framework/src/resources/step-resolver/step.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {
1212
import type { Subscriber } from '../../types/subscriber.types';
1313
import type { Awaitable } from '../../types/util.types';
1414

15-
type StepResolverContext<TPayload extends Record<string, unknown> = Record<string, unknown>> = {
15+
export type StepResolverContext<TPayload extends Record<string, unknown> = Record<string, unknown>> = {
1616
payload: TPayload;
1717
subscriber: Subscriber;
1818
context: ContextResolved;

packages/framework/src/step-resolver.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ export type {
55
InAppStepResolver,
66
PushStepResolver,
77
SmsStepResolver,
8+
StepResolverContext,
89
} from './resources/step-resolver/step';
910
export { step } from './resources/step-resolver/step';
1011
export { providerSchemas } from './schemas/providers';
1112
export { channelStepSchemas } from './schemas/steps/channels';
13+
export type { ContextResolved } from './types/context.types';
1214
export type { WithPassthrough } from './types/provider.types';
15+
export type { Subscriber } from './types/subscriber.types';

0 commit comments

Comments
 (0)