Skip to content

Commit

Permalink
feat(types): allow parametrization of handler definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
nfroidure committed Jul 16, 2020
1 parent e319d64 commit 1d7a9b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/whook/src/services/API_DEFINITIONS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ export type WhookAPIHandlerDefinition<T = {}> = {
method: string;
operation: WhookAPIOperation<T>;
};
export type WhookAPISchemaDefinition = {
export type WhookAPISchemaDefinition<T = any> = {
name: string;
schema: OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject;
example?: any;
example?: T;
};
export type WhookAPIParameterDefinition = {
name: string;
Expand Down

0 comments on commit 1d7a9b3

Please sign in to comment.