File tree Expand file tree Collapse file tree
openapi-ts-tests/msw/v2/__snapshots__
openapi-ts/src/plugins/@hey-api/examples Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// This file is auto-generated by @hey-api/openapi-ts
22
3- function personExample ( ) {
3+ export function personExample ( ) {
44 return {
55 firstName : 'Marry' ,
66 lastName : 'Jane' ,
77 age : 30
88 } ;
99}
1010
11- function Example ( options ) {
11+ export function Example ( ) {
1212 return 'John Doe' ;
1313}
Original file line number Diff line number Diff line change 11// This file is auto-generated by @hey-api/openapi-ts
22
3- function personExample ( ) {
3+ export function personExample ( ) {
44 return {
55 firstName : 'Marry' ,
66 lastName : 'Jane' ,
77 age : 30
88 } ;
99}
1010
11- function Example ( options ) {
11+ export function Example ( ) {
1212 return 'John Doe' ;
1313}
Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ function generateSingularSchemaFactory({
281281
282282 const func = $ . func ( symbol )
283283 . decl ( )
284+ . export ( )
284285 . do ( $ . return ( $ . fromValue ( schemaExample , { layout : 'pretty' } ) ) ) ;
285286
286287 plugin . node ( func ) ;
@@ -310,7 +311,8 @@ function generatePluralSchemaFactory({
310311
311312 const func = $ . func ( symbol )
312313 . decl ( )
313- . param ( 'options' )
314+ . export ( )
315+ // .param('options')
314316 . do ( $ . return ( $ . fromValue ( schemaExample [ firstKey ] ! , { layout : 'pretty' } ) ) ) ;
315317
316318 plugin . node ( func ) ;
@@ -341,7 +343,8 @@ function generateOperationFactory({
341343
342344 const func = $ . func ( symbol )
343345 . decl ( )
344- . param ( 'options' )
346+ . export ( )
347+ // .param('options')
345348 . do (
346349 $ . return (
347350 $ . fromValue (
You can’t perform that action at this time.
0 commit comments