Skip to content

refactor: 🏷️ add explicit return type to extractProtectSchema#203

Merged
coderdan merged 2 commits intomainfrom
drizzle-typing
Nov 6, 2025
Merged

refactor: 🏷️ add explicit return type to extractProtectSchema#203
coderdan merged 2 commits intomainfrom
drizzle-typing

Conversation

@calvinbrewer
Copy link
Copy Markdown
Contributor

@calvinbrewer calvinbrewer commented Nov 6, 2025

Before

const protectUsers = extractProtectSchema(users)
const a = protectUsers.name // CsColumn | undefined

After

const protectUsers = extractProtectSchema(users)
const a = protectUsers.name // CsColumn

- Add explicit return type annotation matching csTable return type
- Remove unused ProtectTable import
- Ensures column keys are accessible on returned schema object
Copy link
Copy Markdown
Contributor

@coderdan coderdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@coderdan coderdan merged commit 5d5c6cc into main Nov 6, 2025
1 check passed
@coderdan coderdan deleted the drizzle-typing branch November 6, 2025 22:53
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.

2 participants