Skip to content

Commit 1518237

Browse files
authored
[typescript] fix: deno: type exports for isolatedModules (OpenAPITools#19484)
1 parent 4238f17 commit 1518237

35 files changed

Lines changed: 6094 additions & 1 deletion
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
generatorName: typescript
2+
outputDir: samples/openapi3/client/petstore/typescript/builds/deno_object_params
3+
inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore.yaml
4+
templateDir: modules/openapi-generator/src/main/resources/typescript
5+
additionalProperties:
6+
platform: deno
7+
npmName: ts-petstore-client
8+
useObjectParameters: true
9+
projectName: ts-petstore-client
10+
moduleName: petstore

modules/openapi-generator/src/main/resources/typescript/index.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export { Middleware } from './middleware{{importFileExtension}}';
1616
export{{#platforms}}{{#deno}} type{{/deno}}{{/platforms}} { PromiseMiddleware as Middleware } from './middleware{{importFileExtension}}';
1717
{{/useRxJS}}
1818
{{#useObjectParameters}}
19-
export { {{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}{{classname}}{{operationIdCamelCase}}Request, {{/operation}}Object{{classname}} as {{classname}}{{^-last}}, {{/-last}} {{/operations}}{{/apis}}{{/apiInfo}}} from './types/ObjectParamAPI{{importFileExtension}}';
19+
export { {{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}{{#platforms}}{{#deno}}type {{/deno}}{{/platforms}}{{classname}}{{operationIdCamelCase}}Request, {{/operation}}Object{{classname}} as {{classname}}{{^-last}}, {{/-last}} {{/operations}}{{/apis}}{{/apiInfo}}} from './types/ObjectParamAPI{{importFileExtension}}';
2020
{{/useObjectParameters}}
2121
{{^useObjectParameters}}
2222
{{#useRxJS}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
.gitignore
2+
PetApi.md
3+
StoreApi.md
4+
UserApi.md
5+
apis/PetApi.ts
6+
apis/StoreApi.ts
7+
apis/UserApi.ts
8+
apis/baseapi.ts
9+
apis/exception.ts
10+
auth/auth.ts
11+
configuration.ts
12+
git_push.sh
13+
http/http.ts
14+
http/isomorphic-fetch.ts
15+
index.ts
16+
middleware.ts
17+
models/ApiResponse.ts
18+
models/Category.ts
19+
models/ObjectSerializer.ts
20+
models/Order.ts
21+
models/Pet.ts
22+
models/Tag.ts
23+
models/User.ts
24+
models/all.ts
25+
rxjsStub.ts
26+
servers.ts
27+
types/ObjectParamAPI.ts
28+
types/ObservableAPI.ts
29+
types/PromiseAPI.ts
30+
util.ts
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.9.0-SNAPSHOT

0 commit comments

Comments
 (0)