I am trying to integrate Google's AR Model VIewer with Needle using this AR Renderer script as a starting point, making it into a .ts Behaviour/Component with Needle to see what works/doesn't but I can't get past this declaration of an export type which gives me the generic error Unexpected token. A constructor, method, accessor, or property was expected. in VS Code and I have exhausted all suggested workarounds I could find on Stackoverflow. Is there a certain way I should declare this type in Needle? Seems to be some kind of enum. WIP script attached for full reference, keen to get some really nice AR draggable sample together.
export type ARStatus =
'not-presenting'|'session-started'|'object-placed'|'failed';
export const ARStatus: {[index: string]: ARStatus} = {
NOT_PRESENTING: 'not-presenting',
SESSION_STARTED: 'session-started',
OBJECT_PLACED: 'object-placed',
FAILED: 'failed'
};