TypeScript errors in Mobile Hub SDK setup docs
Content
I have installed the Mobile Cloud Service SDK for ionic into my ionic app, as per the notes in the official Oracle docs found here:
However, the code shown in step 3 (Create the configuration file for the app) seems not to be correctly formed TypeScript. When I paste it into a new .ts file in my project, the following two lines of code cause compilation errors:
import * as mcssdk from 'mcs'
const mcs: IMCS = mcssdk;
The errors are: Identifier expected, ; expected, cannot find name 'mcssdk'. There's also no closing brace for the first opening brace. Does anyone have a working example I could use?
0