function markImplicitSameChatApprovalAuthorization(
result: ApprovalAuthorizationResult,
): ApprovalAuthorizationResult { // Keep this non-enumerable to avoid changing auth payload shape. // Consumers must pass the same object reference to // `isImplicitSameChatApprovalAuthorization`; spread/Object.assign/JSON clones // drop this marker.
Object.defineProperty(result, IMPLICIT_SAME_CHAT_APPROVAL_AUTHORIZATION, {
value: true,
enumerable: false,
}); return result;
}
export function isImplicitSameChatApprovalAuthorization(
result: ApprovalAuthorizationResult | null | undefined,
): boolean { returnBoolean(
result &&
(
result as ApprovalAuthorizationResult & {
[IMPLICIT_SAME_CHAT_APPROVAL_AUTHORIZATION]?: true;
}
)[IMPLICIT_SAME_CHAT_APPROVAL_AUTHORIZATION],
);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.