标签: typescript nativescript nativescript-plugin
我创建了一个NativeScript插件。我希望在导入时实例化该插件。可能吗 ?如果我考虑不好,还有其他方法吗?
// A message should appear in the console import * example from "example"; // The message appears in the console because the plugin is imported