Skip to content

Commit ebe4791

Browse files
committed
types: internalize {describe:*} to Interface
1 parent bcbcbbe commit ebe4791

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

packages/kernel-utils/src/discoverable.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@ export type DiscoverableExo<
1515
keyof Interface,
1616
MethodSchema
1717
>,
18-
> = ReturnType<typeof makeExo<Interface>> & {
19-
/**
20-
* Describe the methods of the discoverable.
21-
*
22-
* @returns A schema of the methods.
23-
*/
24-
describe: () => Schema;
25-
};
18+
> = ReturnType<
19+
typeof makeExo<
20+
Interface & {
21+
/**
22+
* Describe the methods of the discoverable.
23+
*
24+
* @returns A schema of the methods.
25+
*/
26+
describe: () => Schema;
27+
}
28+
>
29+
>;
2630

2731
/**
2832
* Shorthand for creating a discoverable `@endo/exo` remotable with default guards set to 'passable'.

0 commit comments

Comments
 (0)