Skip to content

feat: Add deprecation warning on buggy pgtui types#5

Merged
louis-pre merged 2 commits into
mainfrom
feat/deprecate-buggy-types
May 2, 2025
Merged

feat: Add deprecation warning on buggy pgtui types#5
louis-pre merged 2 commits into
mainfrom
feat/deprecate-buggy-types

Conversation

@louis-pre
Copy link
Copy Markdown
Member

@louis-pre louis-pre commented May 2, 2025

Following a discussion with @mxsdev

Resulting type looks like this

/**
 * @deprecated Reproduces type bugs from the legacy `pgtui` library and should not be used in new code.
 *
 * Specifically:
 * - Columns ending in `_id` are incorrectly typed as `string`, regardless of their actual database type.
 * - `jsonb` columns are typed as `any` instead of a more specific type.
 */
export type DeviceWithPgtuiBugs = ReproducePgtuiBugs<Device>

@louis-pre louis-pre self-assigned this May 2, 2025
@louis-pre louis-pre merged commit a841fd0 into main May 2, 2025
16 checks passed
@louis-pre louis-pre deleted the feat/deprecate-buggy-types branch May 2, 2025 23:00
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.

1 participant