Skip to content

Commit 1cc32ee

Browse files
committed
Disable TypeScript type checking on generated files
1 parent 3054850 commit 1cc32ee

8 files changed

Lines changed: 8 additions & 1 deletion

File tree

examples/bun-mysql2/src/db/query_sql.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Code generated by sqlc. DO NOT EDIT.
2+
// @ts-nocheck
23

34
import mysql, { RowDataPacket, ResultSetHeader } from "mysql2/promise";
45

examples/bun-pg/src/db/query_sql.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Code generated by sqlc. DO NOT EDIT.
2+
// @ts-nocheck
23

34
import { QueryArrayConfig, QueryArrayResult } from "pg";
45

examples/bun-postgres/src/db/query_sql.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Code generated by sqlc. DO NOT EDIT.
2+
// @ts-nocheck
23

34
import { Sql } from "postgres";
45

examples/node-better-sqlite3/src/db/query_sql.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Code generated by sqlc. DO NOT EDIT.
2+
// @ts-nocheck
23

34
import { Database } from "better-sqlite3";
45

examples/node-mysql2/src/db/query_sql.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Code generated by sqlc. DO NOT EDIT.
2+
// @ts-nocheck
23

34
import mysql, { RowDataPacket, ResultSetHeader } from "mysql2/promise";
45

examples/node-pg/src/db/query_sql.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Code generated by sqlc. DO NOT EDIT.
2+
// @ts-nocheck
23

34
import { QueryArrayConfig, QueryArrayResult } from "pg";
45

examples/node-postgres/src/db/query_sql.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Code generated by sqlc. DO NOT EDIT.
2+
// @ts-nocheck
23

34
import { Sql } from "postgres";
45

src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ function printNode(nodes: Node[]): string {
289289
ScriptKind.TS
290290
);
291291
const printer = createPrinter({ newLine: NewLineKind.LineFeed });
292-
let output = "// Code generated by sqlc. DO NOT EDIT.\n\n";
292+
let output = "// Code generated by sqlc. DO NOT EDIT.\n// @ts-nocheck\n\n";
293293
for (let node of nodes) {
294294
output += printer.printNode(EmitHint.Unspecified, node, resultFile);
295295
output += "\n\n";

0 commit comments

Comments
 (0)