Skip to content

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Jan 31, 2024
1 parent 300fcd3 commit 195044c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
7 changes: 0 additions & 7 deletions src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,13 @@

import {
AWAKEABLE_ENTRY_MESSAGE_TYPE,
BACKGROUND_INVOKE_ENTRY_MESSAGE_TYPE,
CLEAR_STATE_ENTRY_MESSAGE_TYPE,
COMPLETE_AWAKEABLE_ENTRY_MESSAGE_TYPE,
COMPLETION_MESSAGE_TYPE,
ENTRY_ACK_MESSAGE_TYPE,
ERROR_MESSAGE_TYPE,
GET_STATE_ENTRY_MESSAGE_TYPE,
INVOKE_ENTRY_MESSAGE_TYPE,
KNOWN_MESSAGE_TYPES,
OUTPUT_STREAM_ENTRY_MESSAGE_TYPE,
POLL_INPUT_STREAM_ENTRY_MESSAGE_TYPE,
ProtocolMessage,
SET_STATE_ENTRY_MESSAGE_TYPE,
SIDE_EFFECT_ENTRY_MESSAGE_TYPE,
SLEEP_ENTRY_MESSAGE_TYPE,
START_MESSAGE_TYPE,
SUSPENSION_MESSAGE_TYPE,
Expand Down
2 changes: 1 addition & 1 deletion test/side_effect.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ export class UnawaitedSideEffectShouldFailSubsequentContextCallService
implements TestGreeter
{
constructor(
// eslint-disable-next-line @typescript-eslint/no-empty-function
// eslint-disable-next-line @typescript-eslint/no-empty-function,@typescript-eslint/no-unused-vars
private readonly next = (ctx: restate.RestateContext): void => {}
) {}

Expand Down
6 changes: 4 additions & 2 deletions test/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,22 +155,24 @@ describe("jsonSafeAny", () => {
expect(jsonSafeAny("", BigInt("9007199254740991"))).toStrictEqual(
BigInt("9007199254740991")
);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(BigInt.prototype as any).toJSON = function () {
return this.toString();
};
expect(jsonSafeAny("", BigInt("9007199254740991"))).toStrictEqual(
"9007199254740991"
);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
delete (BigInt.prototype as any).toJSON;
});
it("handles custom types", () => {
const numberType = {
toJSON(key: string): number {
toJSON(): number {
return 1;
},
};
const stringType = {
toJSON(key: string): string {
toJSON(): string {
return "foo";
},
};
Expand Down

0 comments on commit 195044c

Please sign in to comment.