-
Notifications
You must be signed in to change notification settings - Fork 0
Scouted Matches #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Scouted Matches #26
Conversation
YoniKiriaty
commented
Jan 26, 2026
|
|
||
| const serdeTele = createRecordSerde<typeof defaultTele>({ | ||
| transitionShift: serdeShift, | ||
| shifts: serdeArray(serdeShift) as any, //shifts requires 4 and this is how to fix that |
Check warning
Code scanning / ESLint
Disallow assigning a value with type `any` to variables and properties Warning
|
|
||
| const serdeTele = createRecordSerde<typeof defaultTele>({ | ||
| transitionShift: serdeShift, | ||
| shifts: serdeArray(serdeShift) as any, //shifts requires 4 and this is how to fix that |
Check warning
Code scanning / ESLint
Disallow type assertions that narrow a type Warning
|
|
||
| const serdeTele = createRecordSerde<typeof defaultTele>({ | ||
| transitionShift: serdeShift, | ||
| shifts: serdeArray(serdeShift) as any, //shifts requires 4 and this is how to fix that |
Check warning
Code scanning / ESLint
Disallow the `any` type Warning
| export const serdeRecordFieldsBuilder = ( | ||
| fieldNamesSerdes: Record<string, Serde<unknown>> | ||
| ): FieldsRecordSerde<unknown> => { | ||
| fieldNamesSerdes: Record<string, Serde<any>>, |
Check warning
Code scanning / ESLint
Disallow the `any` type Warning
| fieldNamesSerdes: Record<string, Serde<unknown>> | ||
| ): FieldsRecordSerde<unknown> => { | ||
| fieldNamesSerdes: Record<string, Serde<any>>, | ||
| ): FieldsRecordSerde<any> => { |
Check warning
Code scanning / ESLint
Disallow the `any` type Warning
| return recordSerde; | ||
| }; | ||
|
|
||
| export const createRecordSerde = <T extends {}>(record: Serdify<T>) => |
Check warning
Code scanning / ESLint
Require explicit return and argument types on exported functions' and classes' public class methods Warning
| }; | ||
|
|
||
| export const createRecordSerde = <T extends {}>(record: Serdify<T>) => | ||
| pipe(serdeRecordFieldsBuilder(record), serdeRecord) as Serde<T>; |
Check warning
Code scanning / ESLint
Disallow type assertions that narrow a type Warning
| @@ -0,0 +1,123 @@ | |||
| // בס"ד | |||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ew line