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

[core] Make TS declaration for process an interface #32464

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

tsapeta
Copy link
Member

@tsapeta tsapeta commented Oct 30, 2024

Why

Currently our declaration can conflict/override with other declarations used in the app.

How

Instead of strictly defining global.process object, I made a dedicated ExpoProcess interface.

Test Plan

Checks are passing and process.env is properly typed, i.e. expo-specific variables are available.

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Oct 30, 2024
@expo-bot
Copy link
Collaborator

expo-bot commented Oct 30, 2024

The Pull Request introduced fingerprint changes against the base commit: b77c7d7

Fingerprint diff
[
  {
    "op": "changed",
    "source": {
      "type": "dir",
      "filePath": "../../packages/expo-modules-core",
      "reasons": [
        "expoAutolinkingIos",
        "expoAutolinkingAndroid"
      ],
      "hash": "f287922efe03711422468b9f032a92d2d1d360e4"
    }
  }
]

Generated by PR labeler 🤖

@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Oct 30, 2024
@tsapeta tsapeta force-pushed the @tsapeta/core/process-interface branch from 0020f2b to 521d0a6 Compare October 30, 2024 16:38
@tsapeta tsapeta force-pushed the @tsapeta/core/process-interface branch from 521d0a6 to 2ec5da5 Compare October 30, 2024 17:40
@tsapeta tsapeta marked this pull request as ready for review October 30, 2024 19:59
Copy link
Contributor

Subscribed to pull request

File Patterns Mentions
packages/expo-modules-core/** @Kudo, @lukmccall

Generated by CodeMention

@tsapeta tsapeta requested a review from Kudo October 30, 2024 20:02
@tsapeta tsapeta merged commit 63b6394 into main Oct 31, 2024
12 checks passed
@tsapeta tsapeta deleted the @tsapeta/core/process-interface branch October 31, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint changed bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants