Add Prettier formatting and Gitea Actions CI (format, typecheck, test, build)
CI / Node 20 (push) Successful in 1m49s
CI / Node 22 (push) Successful in 1m52s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Qxbkp4tA7G5SCWjzWuxmE
This commit is contained in:
Claude
2026-10-23 07:29:38 +00:00
parent 5a370f8c78
commit e27541c46a
24 changed files with 341 additions and 209 deletions
+16 -7
View File
@@ -47,12 +47,18 @@ describe('KV types (section 7)', () => {
db.child('users').child('1').set({ username: 'a', age: 1 })
// @ts-expect-error wrong value type
db.child('users').set('1', { username: 'a' })
db.child('profile').child('9').setMany([
['age', 3],
['username', 'x'],
])
// @ts-expect-error value doesn't match its key
db.child('profile').child('9').setMany([['age', 'x']])
db.child('profile')
.child('9')
.setMany([
['age', 3],
['username', 'x'],
])
db.child('profile')
.child('9')
.setMany([
// @ts-expect-error value doesn't match its key
['age', 'x'],
])
})
it('types listings', () => {
@@ -82,7 +88,10 @@ describe('event types', () => {
orders.child('o1').append([{ type: 'paid' }])
// @ts-expect-error not an OrderEvent
orders.append('o1', [{ type: 'refunded' }])
orders.child('o1').child('shipments').append('s1', [{ carrier: 'x' }])
orders
.child('o1')
.child('shipments')
.append('s1', [{ carrier: 'x' }])
})
it('types read results', () => {