mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-03 09:49:32 +02:00
Replace tslint by eslint
This commit is contained in:
parent
b43059f8e2
commit
f028b99bbc
24 changed files with 2498 additions and 311 deletions
|
@ -115,7 +115,7 @@ types.forEach((type) => {
|
|||
const functionBody = 'ajv.compile(' + schemaString + ')'
|
||||
const functionName = 'is' + type.substr(0, 1).toUpperCase() + type.substr(1)
|
||||
|
||||
output += 'export const ' + functionName + ': (value: object) => value is ' + type + ' = ' + functionBody + '\n'
|
||||
output += 'export const ' + functionName + ': (value: unknown) => value is ' + type + ' = ' + functionBody + '\n'
|
||||
})
|
||||
|
||||
allTypes.forEach((type) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue