Skip to content

Instantly share code, notes, and snippets.

@nandorojo
Last active February 27, 2023 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nandorojo/b0f3919248ac726e4d59ad6390bf83a5 to your computer and use it in GitHub Desktop.
Save nandorojo/b0f3919248ac726e4d59ad6390bf83a5 to your computer and use it in GitHub Desktop.
How to use TypeScript 4.9 `satisfies` with Expo SDK 47

Are you looking for TypeScript 5.0 support?


Add the following resolutions to your package.json:

{
  "resolutions": {
    "@babel/preset-typescript": "^7.18.6",
    "@babel/core": "^7.20.12",
    "@babel/plugin-transform-typescript": "^7.20.12",
  }
}

I got here from this error:

unknown node of type "TSSatisfiesExpression" with constructor "Object"

Once Expo adds support for this (likely in the next SDK), you should remove these resolutions.

@JoachimKoenigslieb
Copy link

Thank you!

@nandorojo
Copy link
Author

Happy to help.

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