You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are short imports in the source code of nativescript-angular. They should be removed, because they may be deprecated in later versions of the framework.
A short definition of short import:
An import that is shortened from tns-core-modules/something to something.
The nativescript-angular plugin is written in TypeScript. A nice solution would be to parse the source files, then find and replace all AST nodes that contain short imports.
The text was updated successfully, but these errors were encountered:
Problem
There are
short imports
in the source code ofnativescript-angular
. They should be removed, because they may be deprecated in later versions of the framework.A short definition of
short import
:Example of
short import
:nativescript-angular/tests/app/tests/style-properties.ts
Line 6 in bdd9ece
The above code should be rewritten to:
Note 1
All valid
short-imports
are the files and directories that are on the root level of thetns-core-modules
package - https://github.com/NativeScript/NativeScript/tree/master/tns-core-modules. Here's a (not exhaustive) list:Note 2
The
nativescript-angular
plugin is written in TypeScript. A nice solution would be to parse the source files, then find and replace all AST nodes that containshort imports
.The text was updated successfully, but these errors were encountered: