Skip to content

Commit d927322

Browse files
authored
fix: widen ExpressionTransformer return type to accept ReturnTsDsl
Agent-Logs-Url: https://github.com/hey-api/openapi-ts/sessions/79703477-c687-4be3-bd34-964d0a15aa35
1 parent b8b2697 commit d927322

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/openapi-ts/src/plugins/@hey-api/transformers

packages/openapi-ts/src/plugins/@hey-api/transformers/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export type ExpressionTransformer = (
1515
config: Omit<UserConfig, 'name'>;
1616
dataExpression?: ts.Expression | ReturnType<typeof $.attr | typeof $.expr> | string;
1717
},
18-
) => Array<TsDsl<ts.Expression>> | undefined;
18+
) => Array<TsDsl<ts.Expression> | ReturnType<typeof $.return>> | undefined;
1919

2020
/**
2121
* Returns the TypeScript type node for a schema with a specific format.

0 commit comments

Comments
 (0)