-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87af051
commit 8969427
Showing
23 changed files
with
1,248 additions
and
541 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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('.') 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 useAeria: () => Promise<Context> | ||
export const aeria: Context | ||
} | ||
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,5 @@ export { | |
log, | ||
resourceUsage, | ||
|
||
} from 'sonata-api' | ||
} from 'aeria' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
{ | ||
"extends": "sonata-build/config/tsconfig.json", | ||
"extends": "aeria-build/config/tsconfig.json", | ||
"compilerOptions": { | ||
"outDir": "dist", | ||
"preserveSymlinks": true | ||
} | ||
}, | ||
"include": [ | ||
"src", | ||
"@types/*.d.ts", | ||
"sonata-api.d.ts" | ||
] | ||
} |
Oops, something went wrong.