Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
minenwerfer committed Jun 10, 2024
1 parent f8b2130 commit ffd215d
Show file tree
Hide file tree
Showing 5 changed files with 315 additions and 286 deletions.
33 changes: 33 additions & 0 deletions api/.aeria/aeria.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// this file will be overwritten
import type {} from '@aeriajs/types'

declare global {
type UnpackCollections<TCollections> = {
[P in keyof TCollections]: TCollections[P] extends infer Candidate
? Candidate extends (...args: any[]) => infer Coll
? Coll
: Candidate
: never
}

type Collections = typeof import('../src/index.ts') extends infer EntrypointModule
? 'collections' extends keyof EntrypointModule
? UnpackCollections<EntrypointModule['collections']>
: 'default' extends keyof EntrypointModule
? EntrypointModule['default'] extends infer Entrypoint
? 'options' extends keyof Entrypoint
? 'collections' extends keyof Entrypoint['options']
? UnpackCollections<Entrypoint['options']['collections']>
: never
: never
: never
: never
: never
}

declare module 'aeria' {
import type { Context } from 'aeria'
export const createAeria: () => Promise<Context>
export const aeria: Context
}
//
189 changes: 94 additions & 95 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ffd215d

Please sign in to comment.