Skip to content

Conversation

@KyleAMathews
Copy link
Contributor

Add a BuiltInPgType union type that lists all built-in PostgreSQL type names that can be used as parser keys. This provides IDE autocomplete and IntelliSense support when defining custom parsers.

The Parser type now uses a mapped type with BuiltInPgType | (string & {}) which gives autocomplete for known PG types while still allowing custom types like enums, domains, and composite types.

Also exports BuiltInPgType, Parser, ParseFunction, pgArrayParser, and defaultParser from the package index for easier use by consumers.

Add a BuiltInPgType union type that lists all built-in PostgreSQL type
names that can be used as parser keys. This provides IDE autocomplete
and IntelliSense support when defining custom parsers.

The Parser type now uses a mapped type with BuiltInPgType | (string & {})
which gives autocomplete for known PG types while still allowing custom
types like enums, domains, and composite types.

Also exports BuiltInPgType, Parser, ParseFunction, pgArrayParser, and
defaultParser from the package index for easier use by consumers.
@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 22, 2025

Open in StackBlitz

npm i https://pkg.pr.new/@electric-sql/react@3633
npm i https://pkg.pr.new/@electric-sql/client@3633
npm i https://pkg.pr.new/@electric-sql/y-electric@3633

commit: 3579891

@codecov
Copy link

codecov bot commented Dec 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.76%. Comparing base (f6e7c75) to head (3579891).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3633   +/-   ##
=======================================
  Coverage   87.76%   87.76%           
=======================================
  Files          18       18           
  Lines        1676     1676           
  Branches      424      424           
=======================================
  Hits         1471     1471           
  Misses        203      203           
  Partials        2        2           
Flag Coverage Δ
packages/experimental 87.73% <ø> (ø)
packages/react-hooks 86.48% <ø> (ø)
packages/typescript-client 93.66% <100.00%> (ø)
packages/y-electric 56.05% <ø> (ø)
typescript 87.76% <100.00%> (ø)
unit-tests 87.76% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants