File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 "peerDependencies" : {
55 "@angular/core" : " 17.x.x" ,
66 "@angular/cdk" : " 17.x.x" ,
7+ "@angularity/core" : " *" ,
78 "rxjs" : " 7.x.x"
89 },
910 "dependencies" : {
Original file line number Diff line number Diff line change 1+ import { DialogConfig , DialogRef } from '@angular/cdk/dialog' ;
2+
3+ const TYPES = Symbol ( 'TYPES' ) ;
4+
5+ export abstract class DialogIoTypes < Input , Output > {
6+ [ TYPES ] ?: [ Input , Output ] ;
7+ }
8+
9+ export type DialogInputOf < T extends DialogIoTypes < any , any > > =
10+ T extends DialogIoTypes < infer Input , any > ? Input : never ;
11+
12+ export type DialogOutputOf < T extends DialogIoTypes < any , any > > =
13+ T extends DialogIoTypes < any , infer Output > ? Output : never ;
14+
15+ export type DialogRefOf < T extends DialogIoTypes < any , any > > = DialogRef <
16+ DialogOutputOf < T > ,
17+ T
18+ > ;
19+
20+ export type DialogConfigOf < T extends DialogIoTypes < any , any > > = DialogConfig <
21+ DialogInputOf < T > ,
22+ DialogRefOf < T >
23+ > ;
24+
25+ export function createDialogConfig < T extends DialogIoTypes < any , any > > (
26+ config : DialogConfigOf < T > ,
27+ ) : typeof config {
28+ return config ;
29+ }
Original file line number Diff line number Diff line change 1+ export * from './dialog' ;
12export * from './named-breakpoint-observer' ;
You can’t perform that action at this time.
0 commit comments