Skip to content

feat: Add support for .razor.ts and .entry.ts files#7

Merged
s97712 merged 1 commit intomainfrom
feature/razor-ts-support
Sep 12, 2025
Merged

feat: Add support for .razor.ts and .entry.ts files#7
s97712 merged 1 commit intomainfrom
feature/razor-ts-support

Conversation

@s97712
Copy link
Owner

@s97712 s97712 commented Sep 12, 2025

This commit introduces a new file naming convention to better distinguish between component-specific scripts and shared modules.

  • : For TypeScript files tightly coupled with a Razor component. The generator creates a partial class for the component with an injected property.
  • : For standalone TypeScript modules that can be shared across the application. The generator creates a standard C# class that can be registered and injected via DI.

This change deprecates the generic use of files, promoting a more structured and explicit approach to organizing TypeScript code in Blazor projects.

This commit introduces a new file naming convention to better distinguish between component-specific scripts and shared modules.

- : For TypeScript files tightly coupled with a Razor component. The generator creates a partial class for the component with an injected  property.
- : For standalone TypeScript modules that can be shared across the application. The generator creates a standard C# class that can be registered and injected via DI.

This change deprecates the generic use of  files, promoting a more structured and explicit approach to organizing TypeScript code in Blazor projects.
@s97712 s97712 merged commit 6385b5e into main Sep 12, 2025
8 checks passed
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