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
and inside the typescript code of the custom-app-delegate.ts add this line.
const instance = new CustomAppDelegate();
export const JobServiceIOS = instance;
Note:
If you encounter an error saying Error module typescript. You need to update your package.json and add "typescript": "~version of typscript". Also make sure you installed typescript globally. npm i -g typescript
Activity
pollyolly commentedon Oct 6, 2019
Hello I finally make this work. Here's what I do.
install the required dependencies to run a typscript.
install typescript
and if you dont have tns-platform-declaration install it inside the nativescript node_modules npm install tns-platform-declaration.
now in your application root folder create a filename references.d.ts
copy paste the code below inside the references.d.ts
now copy the tsconfig.json of this repository in your root folder outside of ./app folder.
also the references.d.ts.
Then to call the typescript code inside your javascript mine inside the app.js.
and inside the typescript code of the custom-app-delegate.ts add this line.
Note:
Done!