Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(keep-sorted): unable to find first interface/declare #29

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

ddosakura
Copy link
Contributor

Description

Fixed unexpected "Unable to find object/array/interface to sort" error for first interface/declare in two cases:

// @keep-sorted -> [keep-sorted] error: Unable to find object/array/interface to sort"
interface A {
  foo: number
}
// @keep-sorted
interface B {
  foo: number
}
// @keep-sorted -> [keep-sorted] error: Unable to find object/array/interface to sort"
const arr1 = [
  { index: 0, name: 'foo' },
]
// @keep-sorted
const arr2 = [
  { index: 0, name: 'foo' },
]

Linked Issues

Additional context

Copy link

netlify bot commented Sep 26, 2024

Deploy Preview for resonant-bonbon-a310e6 ready!

Name Link
🔨 Latest commit c2ef254
🔍 Latest deploy log https://app.netlify.com/sites/resonant-bonbon-a310e6/deploys/66f567897a654f00077a5554
😎 Deploy Preview https://deploy-preview-29--resonant-bonbon-a310e6.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@antfu antfu merged commit 902960c into antfu:main Sep 26, 2024
9 checks passed
@antfu antfu changed the title fix: Unable to find first interface/declare fix(keep-sorted): unable to find first interface/declare Sep 26, 2024
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