Skip to content

feat(types-minimal): minimal types for only the latest Android and iOS sdks#9927

Merged
NathanWalker merged 3 commits into
masterfrom
feat/types-minimal
Jun 4, 2022
Merged

feat(types-minimal): minimal types for only the latest Android and iOS sdks#9927
NathanWalker merged 3 commits into
masterfrom
feat/types-minimal

Conversation

@NathanWalker

Copy link
Copy Markdown
Contributor

PR Checklist

What is the current behavior?

Currently Web-based IDEs which auto load all type declarations from anything they find in node_modules would not perform well due to high memory consumption of loading all types (even all sdks over the years).

What is the new behavior?

This package @nativescript/types-minimal optimizes to only include the latest Android and iOS sdks and allows web-based IDE's to perform extremely well.

@cla-bot cla-bot Bot added the cla: yes label Jun 1, 2022
@farfromrefug

Copy link
Copy Markdown
Collaborator

@NathanWalker love this. Could we split the androidx typing like it is done on iOS? That way there could be a way to get even faster by only using the ones you need. Could make a huge difference.
We could even think about splitting the android typings by separating android.os, android.widgets, java .....

@NathanWalker

Copy link
Copy Markdown
Contributor Author

@NathanWalker love this. Could we split the androidx typing like it is done on iOS? That way there could be a way to get even faster by only using the ones you need. Could make a huge difference. We could even think about splitting the android typings by separating android.os, android.widgets, java .....

We can take this farther as time moves on yes. This will be step 1.

@NathanWalker
NathanWalker merged commit 80e6b81 into master Jun 4, 2022
@NathanWalker
NathanWalker deleted the feat/types-minimal branch June 4, 2022 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants