Skip to content

Commit 66a5815

Browse files
authored
Update README.md
1 parent 9ca6728 commit 66a5815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ import { generateApi, generateTemplates } from "swagger-typescript-api";
8484

8585
/* NOTE: all fields are optional expect one of `input`, `url`, `spec` */
8686
generateApi({
87-
name: "MySuperbApi.ts",
87+
fileName: "MySuperbApi.ts",
8888
// set to `false` to prevent the tool from writing to disk
8989
output: path.resolve(process.cwd(), "./src/__generated__"),
9090
url: "http://api.com/swagger.json",

0 commit comments

Comments
 (0)