mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 04:01:39 +03:00
16 lines
373 B
TypeScript
16 lines
373 B
TypeScript
|
// @lib: es2015
|
||
|
// @target: es2015
|
||
|
// test for #12203
|
||
|
declare function connectionFromArray(objects: number, args: any): {};
|
||
|
function rootConnection(name: string) {
|
||
|
return {
|
||
|
resolve: async (context, args) => {
|
||
|
const { objects } = await { objects: 12 };
|
||
|
return {
|
||
|
...connectionFromArray(objects, args)
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
rootConnection('test');
|