Skip to content

refactor: use 'import type' for types and interfaces#529

Merged
Jefiozie merged 2 commits intoangular-split:mainfrom
kukreja-vikramaditya:refactor-import-type
Feb 18, 2026
Merged

refactor: use 'import type' for types and interfaces#529
Jefiozie merged 2 commits intoangular-split:mainfrom
kukreja-vikramaditya:refactor-import-type

Conversation

@kukreja-vikramaditya
Copy link
Contributor

Helps avoid lint issues related to isolatedModules as mentioned in https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html

@kukreja-vikramaditya kukreja-vikramaditya force-pushed the refactor-import-type branch 2 times, most recently from 7937dee to 55a27c5 Compare January 18, 2026 19:54
Copy link
Contributor

@SanderElias SanderElias left a comment

Choose a reason for hiding this comment

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

LGTM,

@Harpush @Jefiozie, if one of you is OK, this one can be merged too

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors TypeScript imports across the angular-split library to use the import type syntax for types and interfaces, addressing lint issues related to the isolatedModules compiler option as introduced in TypeScript 3.8.

Changes:

  • Added import type syntax for type-only imports throughout the library
  • Updated public API exports to use inline type keyword for type exports
  • Ensured runtime values (functions, classes) remain as regular imports/exports

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
public_api.ts Updated exports to use inline type keyword for type exports (AngularSplitDefaultOptions, SplitGutterTemplateContext) and separate export type statement for model types
validations.ts Changed imports of SplitAreaSize, SplitUnit, and SplitAreaComponent to use import type
split.component.ts Changed imports of SplitAreaSize, SplitGutterInteractionEvent, SplitAreaComponent, and ClientPoint to use import type
split-area.component.ts Used inline type keyword for SplitAreaSize while keeping runtime functions as regular imports
split-gutter.directive.ts Changed import of SplitAreaComponent to use import type
angular-split-config.token.ts Changed imports of SplitDir, SplitDirection, and SplitUnit to use import type

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Jefiozie Jefiozie merged commit 2473f10 into angular-split:main Feb 18, 2026
7 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.

4 participants