I know a wide number of you use TypeScript; well one of the irritations I've had with TypeScript -- I just figured out how to solve. Finally did some research and tests to figure out how to make TypeScript support using ~/ as a normal path for building and determining editor intellisense since this is… Continue reading Allowing TypeScript to understand NativeScripts ~/ home path
Category: TypeScript
NativeScript, TypeScript and accessing native Android runtimes
When you are trying to access any of the native android platform using TypeScript, TS will complain about the root name -- TS2304: Cannot find name 'zzzz' at line yyyy TypeScript is unaware that those variables exist and are actually global in scope; so to make TypeScript happy; in your code you will want to… Continue reading NativeScript, TypeScript and accessing native Android runtimes
NativeScript: iOS Tip - See the Metadata & typings .d.ts files generated for your Cocoapod Plugin
One of my debugging tools when something doesn't seem to work as expected on iOS is to tell NativeScript to output the metadata while it is building the application. The easiest way to do it is: TNS_DEBUG_METADATA_PATH="$(pwd)/metadata" tns build ios This will create a metadata-xxxx folder (where xxx is the platform) in the root of… Continue reading NativeScript: iOS Tip - See the Metadata & typings .d.ts files generated for your Cocoapod Plugin