Skip to content

Commit

Permalink
feat: export a barrel type to combine all delivery function events
Browse files Browse the repository at this point in the history
  • Loading branch information
anho committed Sep 26, 2023
1 parent 9220edc commit ddbabe4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ export type {
DeliveryFunctionEventContext,
DeliveryFunctionEventHandler,
DeliveryFunctionEventType,
DeliveryFunctionEvent,
} from './requests'
1 change: 1 addition & 0 deletions src/requests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export { ContentfulHeader, ContentfulContextHeader } from './typings'
export type {
AppActionCallContext,
CanonicalRequest,
DeliveryFunctionEvent,
DeliveryFunctionEventContext,
DeliveryFunctionEventHandler,
DeliveryFunctionEventType,
Expand Down
1 change: 1 addition & 0 deletions src/requests/typings/deliveryFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ type DeliveryFunctionEventHandlers = {
}
}

export type DeliveryFunctionEvent = GraphQLFieldTypeMappingRequest | GraphQLQueryRequest
export type DeliveryFunctionEventType = keyof DeliveryFunctionEventHandlers

/**
Expand Down

0 comments on commit ddbabe4

Please sign in to comment.