Skip to content

Fix sorting string literals in React Native API snapshot#51916

Closed
coado wants to merge 1 commit into
facebook:mainfrom
coado:export-D76329242
Closed

Fix sorting string literals in React Native API snapshot#51916
coado wants to merge 1 commit into
facebook:mainfrom
coado:export-D76329242

Conversation

@coado
Copy link
Copy Markdown
Contributor

@coado coado commented Jun 10, 2025

Summary:
String literals were not sorted in React Native API Snapshot. This diff fixes the issue by retrieving the value from the string literal.

Before:

type A = {
  a: string;
  b: string;
  \"ba\": string;
  \"ab\": string;
  aFn: () => void;
  bFn: () => void;
  aMethod(): void;
  bMethod(): void;
};

After:

type A = {
  a: string;
  \"ab\": string;
  b: string;
  \"ba\": string;
  aFn: () => void;
  bFn: () => void;
  aMethod(): void;
  bMethod(): void;
};

Changelog:
[Internal]

Differential Revision: D76329242

Summary:
String literals were not sorted in React Native API Snapshot. This diff fixes the issue by retrieving the value from the string literal.

Before:

```ts
type A = {
  a: string;
  b: string;
  \"ba\": string;
  \"ab\": string;
  aFn: () => void;
  bFn: () => void;
  aMethod(): void;
  bMethod(): void;
};
```

After:

```ts
type A = {
  a: string;
  \"ab\": string;
  b: string;
  \"ba\": string;
  aFn: () => void;
  bFn: () => void;
  aMethod(): void;
  bMethod(): void;
};
```

Changelog:
[Internal]

Differential Revision: D76329242
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Software Mansion Partner: Software Mansion Partner labels Jun 10, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D76329242

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 10, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in beb3d49.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @coado in beb3d49

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook p: Software Mansion Partner: Software Mansion Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants