-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
servesuggestionsuggestions for new features (yet to be agreed)suggestions for new features (yet to be agreed)typesIssues related to TypeScript typesIssues related to TypeScript types
Description
Is there a interface definition for default export object?
I'm currently using workaround like this, but is there a better way?
export default <{fetch: Deno.ServeHandler}>{
fetch(request){
return new Response("Hello!");
}
};
For example like this...
// lib.deno.ns.d.ts
export interface ServeDefaultExport {
fetch: Deno.ServeHandler;
}
// my project
export default <Deno.ServeDefaultExport>{
fetch(request){
return new Response("Hello!");
}
};
Metadata
Metadata
Assignees
Labels
servesuggestionsuggestions for new features (yet to be agreed)suggestions for new features (yet to be agreed)typesIssues related to TypeScript typesIssues related to TypeScript types