Skip to content

Alias colliding view type imports - #106

Open
rmcfadden wants to merge 1 commit into
mainfrom
fix/alias-colliding-view-names
Open

rmcfadden wants to merge 1 commit into
mainfrom
fix/alias-colliding-view-names

Conversation

@rmcfadden

Copy link
Copy Markdown
Contributor

Summary

  • Alias a view's datasource import when the rendered type names match (users inheriting user becomes User as UserBase).
  • Keeps view types singular without interface User extends User.

Test plan

  • node --experimental-strip-types --test test/generate-view-types.integration.test.ts

Made with Cursor

…arent.

users inheriting user both become User; the import is User as UserBase so tsc no longer sees interface User extends User.

Co-authored-by: Cursor <cursoragent@cursor.com>
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