nx.js
NamespacesSwitchFunctions

appletType

appletType(): number

Returns the "applet type" of the running application.

This can be used to differentiate between "applet mode" vs. "full-memory mode".

Returns

number

Example

import { AppletType } from '@nx.js/constants';
 
if (Switch.appletType() === AppletType.Application) {
  console.log('Running in "full-memory mode"');
} else {
  console.log('Running in "applet mode"');
}

On this page