Skip to content

Commit

Permalink
Add typings and exclude some useless files
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <[email protected]>
  • Loading branch information
mcandeia committed Sep 23, 2024
1 parent 282590a commit 2dacebc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@
"exports": {
".": "./src/actors/mod.ts",
"./hono": "./src/actors/hono/middleware.ts",
"./proxy": "./src/actors/factory.ts"
"./proxy": "./src/actors/proxy.ts"
},
"publish": {
"exclude": [
"**/*.bench.ts",
"**/*.test.ts",
"MAINTAINERS.txt",
".github"
]
},
"imports": {
"@core/asyncutil": "jsr:@core/asyncutil@^1.1.1",
Expand Down
4 changes: 3 additions & 1 deletion src/actors/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ type Promisify<Actor> = {
* utilities to create and manage actors.
*/
export const actors = {
proxy: <TInstance extends Actor>(c: ProxyOptions<TInstance>) => {
proxy: <TInstance extends Actor>(
c: ProxyOptions<TInstance>,
): { id: (id: string) => Promisify<TInstance> } => {
return {
id: (id: string): Promisify<TInstance> => {
return new Proxy<Promisify<TInstance>>({} as Promisify<TInstance>, {
Expand Down

0 comments on commit 2dacebc

Please sign in to comment.