Skip to content

refactor(source-map): unify source span type - #100

Merged
luojiyin1987 merged 1 commit into
masterfrom
refactor/unify-source-span-type
Aug 15, 2026
Merged

refactor(source-map): unify source span type#100
luojiyin1987 merged 1 commit into
masterfrom
refactor/unify-source-span-type

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

What changed

  • Add one internal SourceSpan interface in source-map/types.ts.
  • Remove three duplicate local interfaces.
  • Use type-only imports in each source-map module.

Why

Three modules declared the same source interval shape.

A shared type keeps the source-span contract in one location.

Impact

Runtime behavior does not change.

The public package API does not change.

Validation

  • pnpm run lint
  • pnpm run build
  • pnpm test

All 1,961 tests pass.

Use one internal SourceSpan interface across source-map modules.
@luojiyin1987
luojiyin1987 marked this pull request as ready for review August 15, 2026 03:12
@luojiyin1987
luojiyin1987 merged commit f07517a into master Aug 15, 2026
13 checks passed
@luojiyin1987
luojiyin1987 deleted the refactor/unify-source-span-type branch August 15, 2026 03:12
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