@@ -37,13 +37,13 @@ export interface Binding<
3737 Cap extends Capability = Capability ,
3838 Props = any ,
3939 Tag extends string = Cap [ "type" ] ,
40- IsCustomTag extends boolean = Cap [ "type" ] extends Tag ? false : true ,
40+ IsCustom extends boolean = Cap [ "type" ] extends Tag ? false : true ,
4141> {
4242 runtime : Run ;
4343 capability : Cap ;
4444 tag : Tag ;
4545 props : Props ;
46- isCustomTag : IsCustomTag ;
46+ isCustom : IsCustom ;
4747}
4848
4949/** Tag for a Service that can bind a Capability to a Runtime */
@@ -64,23 +64,13 @@ export interface Bind<
6464}
6565
6666export const Binding : {
67- <
68- F extends (
69- resource : any ,
70- props ?: any ,
71- ) => AnyBinding & { isCustomTag : true } ,
72- > (
67+ < F extends ( resource : any , props ?: any ) => AnyBinding & { isCustom : true } > (
7368 runtime : ReturnType < F > [ "runtime" ] ,
7469 resource : new ( ) => ReturnType < F > [ "capability" ] [ "resource" ] ,
7570 type : ReturnType < F > [ "capability" ] [ "type" ] ,
7671 tag : ReturnType < F > [ "tag" ] ,
7772 ) : F & BindingDeclaration < ReturnType < F > [ "runtime" ] , F > ;
78- <
79- F extends (
80- resource : any ,
81- props ?: any ,
82- ) => AnyBinding & { isCustomTag : false } ,
83- > (
73+ < F extends ( resource : any , props ?: any ) => AnyBinding & { isCustom : false } > (
8474 runtime : ReturnType < F > [ "runtime" ] ,
8575 resource : new ( ) => ReturnType < F > [ "capability" ] [ "resource" ] ,
8676 type : ReturnType < F > [ "capability" ] [ "type" ] ,
@@ -122,17 +112,6 @@ export interface BindingDeclaration<
122112 } ;
123113}
124114
125- // <Self>(): Self =>
126- // Object.assign(
127- // Context.Tag(
128- // `${capability.action}(${tag}, ${runtime})` as `${Cap["action"]}(${Tag}, ${Runtime})`,
129- // )<Self, BindingService<Cap["resource"], Props>>(),
130- // {
131- // Kind: "Binding",
132- // Capability: capability,
133- // },
134- // ) as Self;
135-
136115export type BindingService <
137116 Target = any ,
138117 R extends Resource = Resource ,
0 commit comments