Skip to content

Commit ea1ae14

Browse files
author
Marco Muser
committed
fix openapi-fetch d.cts filename
1 parent a22f78b commit ea1ae14

File tree

4 files changed

+95
-6
lines changed

4 files changed

+95
-6
lines changed

node_modules/openapi-fetch/dist/cjs/index.d.cts

Lines changed: 85 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/openapi-fetch/package.json

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import createClient from "openapi-fetch";
22

33
export const main = () => {
4-
return `'createClient' is declared but its value is never read.ts(6133)
5-
The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("openapi-fetch")' call instead.
6-
To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field "type": "module" to '/Users/marco/Documents/repos/cjsts/package.json'.ts(1479)`
4+
const client = createClient()
5+
return client;
76
}

0 commit comments

Comments
 (0)