Type alias SecureLightSwitch

SecureLightSwitch: {
    appSecret: string;
    secure?: true;
} | {
    appSecret?: never;
    secure: false;
}

This switch allows TypeScript to cry if appSecret is not provided when secure is true.

Type declaration

  • appSecret: string
  • Optional secure?: true

Type declaration

  • Optional appSecret?: never
  • secure: false

Generated using TypeDoc