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

[SDK-3967, SDK-3968] Remove false class exports in type declarations #1524

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

lawrence-forooghian
Copy link
Collaborator

@lawrence-forooghian lawrence-forooghian commented Dec 4, 2023

Note: This PR is based on top of #1518, please review that one first.

Resolves #1519, resolves #1520. See commit messages for more details.

@github-actions github-actions bot temporarily deployed to staging/pull/1524/features December 4, 2023 18:40 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1524/bundle-report December 4, 2023 18:40 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1524/typedoc December 4, 2023 18:40 Inactive
@lawrence-forooghian lawrence-forooghian marked this pull request as ready for review December 4, 2023 18:47
@github-actions github-actions bot temporarily deployed to staging/pull/1524/features December 4, 2023 19:03 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1524/bundle-report December 4, 2023 19:04 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1524/typedoc December 4, 2023 19:04 Inactive
@lawrence-forooghian lawrence-forooghian changed the title [SDK-3967] Remove false class exports in type declarations [SDK-3967, SDK-3968] Remove false class exports in type declarations Dec 4, 2023
@lawrence-forooghian lawrence-forooghian force-pushed the 909-remove-Types-namespace branch 3 times, most recently from ac4f118 to 30f267d Compare January 3, 2024 16:45
@github-actions github-actions bot temporarily deployed to staging/pull/1524/features January 4, 2024 09:31 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1524/bundle-report January 4, 2024 09:31 Inactive
@github-actions github-actions bot temporarily deployed to staging/pull/1524/typedoc January 4, 2024 09:31 Inactive
Base automatically changed from 909-remove-Types-namespace to integration/v2 January 9, 2024 17:33
The type declarations claim that the SDK exports all manner of classes
that it does not in fact export, such as Auth, Presence, PushAdmin,
AbstractRest, AbstractRealtime etc. Trying to import these classes will
result in a runtime (or bundler) error.

So, we convert them all to interfaces. (I can’t see an obvious downside
of doing this; let me know if there is.)

I’ve also addressed the ClientOptions docstring’s links to the Abstract*
constructors by rewording their text, since these links are now
completely broken (they were previously linking to a useless entry for a
nonexistent constructor).

Resolves #1519, resolves #1520.
I _think_ that this reads better, now that as of ff7cb41 they’re no
longer classes.
@lawrence-forooghian lawrence-forooghian merged commit 112eab3 into integration/v2 Jan 16, 2024
12 checks passed
@lawrence-forooghian lawrence-forooghian deleted the 1519-remove-false-class-exports branch January 16, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants