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

Add castInterface API in JSI #49604

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tsaichien
Copy link
Contributor

Summary:
Add JSI castInterface API. This provides a structured way to provide
optional APIs that may or may not be supported in all engines.

Every interface will have its own set of APIs. For instance, JSI Runtime
will provide a set of APIs that all JSI Runtime should support. Hermes
will provide an interface containing Hermes-specific APIs. In the
future, an interface may be created to expose an optional API.

Runtimes will inherit the interfaces that it supports. Users who want to
access a specific API may call castInterface with the interface
containing the API.

Differential Revision: D68964360

Summary:
Add JSI `castInterface` API. This provides a structured way to provide
optional APIs that may or may not be supported in all engines.

Every interface will have its own set of APIs. For instance, JSI Runtime
will provide a set of APIs that all JSI Runtime should support. Hermes
will provide an interface containing Hermes-specific APIs. In the
future, an interface may be created to expose an optional API.

Runtimes will inherit the interfaces that it supports. Users who want to
access a specific API may call `castInterface` with the interface
containing the API.

Differential Revision: D68964360
@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: Facebook Partner: Facebook Partner labels Feb 21, 2025
@facebook-github-bot
Copy link
Contributor

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

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 p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants