Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion types/big.js/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare namespace Big {
type BigSource = number | string | Big;
type BigSource = number | string | Big | bigint;

/**
* GT = 1, EQ = 0, LT = -1
Expand Down
2 changes: 1 addition & 1 deletion types/big.js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@types/big.js",
"version": "6.2.9999",
"version": "7.0.9999",
"projects": [
"https://github.com/MikeMcl/big.js/"
],
Expand Down
5 changes: 5 additions & 0 deletions types/big.js/test/big.js-import-default-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,11 @@ function testMultipleConstructors() {
y.div(3); // 1.6666666667
}

function bigintTests() {
const x: Big = new Big(123n);
Big(456n).plus(789n);
}

function multipleTypesAccepted(n: number | Big | string) {
const y = Big(n).minus(n).mod(n).plus(n).times(n);
y.cmp(n);
Expand Down
5 changes: 5 additions & 0 deletions types/big.js/test/big.js-module-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,11 @@ function testMultipleConstructors() {
y.div(3); // 1.6666666667
}

function bigintTests() {
const x: Big = new Big(123n);
Big(456n).plus(789n);
}

function multipleTypesAccepted(n: number | Big | string) {
const y = Big(n).minus(n).mod(n).plus(n).times(n);
y.cmp(n);
Expand Down
4 changes: 2 additions & 2 deletions types/office-js-preview/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21512,7 +21512,7 @@ declare namespace Office {
}
/**
* Specifies the behavior of an {@link https://learn.microsoft.com/office/dev/add-ins/outlook/encryption-decryption | encryption add-in} after it completes processing an
* {@link https://learn.microsoft.com/javascript/api/office/office.eventtype#fields | OnMessageRead} event.
* {@link https://learn.microsoft.com/office/dev/add-ins/develop/event-based-activation#outlook-events | OnMessageDecrypt} event.
*
* @remarks
*
Expand All @@ -21527,7 +21527,7 @@ declare namespace Office {
interface MessageDecryptEventCompletedOptions {
/**
* When you use the {@link https://learn.microsoft.com/javascript/api/outlook/office.mailboxevent#outlook-office-mailboxevent-completed-member(1) | completed method} to signal completion of an event handler,
* this value indicates if the `OnMessageRead` event should continue to run or be canceled. If the `allowEvent` property is set to `true`, the decrypted contents of the message is displayed.
* this value indicates if the `OnMessageDecrypt` event should continue to run or be canceled. If the `allowEvent` property is set to `true`, the decrypted contents of the message is displayed.
*
* @remarks
*
Expand Down