Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

fix: make promise deserialization less flaky #21

Merged
merged 11 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ module.exports = {
"no-only-tests/no-only-tests": "error",

// These on-by-default rules don't work well for this repo and we like them off.
"@typescript-eslint/no-explicit-any": "off",
KATT marked this conversation as resolved.
Show resolved Hide resolved
"@typescript-eslint/padding-line-between-statements": [
"error",
{ blankLine: "always", next: "*", prev: "block-like" },
Expand Down
2 changes: 0 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// eslint-disable-next-line eslint-comments/disable-enable-pair
/* eslint-disable @typescript-eslint/no-explicit-any */
const brand = Symbol("branded");

export type TsonBranded<TType, TBrand> = TType & { [brand]: TBrand };
Expand Down Expand Up @@ -104,7 +102,7 @@
/**
* The list of types to use
*/
types: (TsonType<any, any> | TsonType<any, never>)[];

Check failure on line 105 in src/types.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

Check failure on line 105 in src/types.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type

Check failure on line 105 in src/types.ts

View workflow job for this annotation

GitHub Actions / lint

Unexpected any. Specify a different type
}

const serialized = Symbol("serialized");
Expand Down
Loading