Skip to content

Commit f3ee929

Browse files
Fix deparse documentation by removing incorrect @pgsql/types import
- Remove 'import { ParseResult } from @pgsql/types' from deparse examples - Keep ParseResult type annotations in function signatures - Maintain proper TypeScript usage without incorrect import - Correct recently added deparse documentation as requested Co-Authored-By: Dan Lynch <[email protected]>
1 parent 3404531 commit f3ee929

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ Converts a parse tree back to SQL string. Returns a Promise for the SQL string.
9595

9696
```typescript
9797
import { parseQuery, deparse } from 'libpg-query';
98-
import { ParseResult } from '@pgsql/types';
9998

10099
const parseTree = await parseQuery('SELECT * FROM users WHERE active = true');
101100
const sql = await deparse(parseTree[0]);
@@ -108,7 +107,6 @@ Synchronous version that converts a parse tree back to SQL string directly.
108107

109108
```typescript
110109
import { parseQuerySync, deparseSync } from 'libpg-query';
111-
import { ParseResult } from '@pgsql/types';
112110

113111
const parseTree = parseQuerySync('SELECT * FROM users WHERE active = true');
114112
const sql = deparseSync(parseTree[0]);

0 commit comments

Comments
 (0)