TypeScript/tests/cases/conformance/types/rest/objectRest2.ts
2016-11-14 08:54:32 -08:00

15 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');