typescript - PrimeNG components d.ts files does not contain @Input @Output metadata -
i experimenting primeng library , angular 2.0. using typescript , have noticed *.d.ts files primeng components not contain standard angular 2.0 metadata @input() @output().
example dialog.d.ts:
export declare class dialog implements afterviewinit, afterviewchecked, ondestroy { private el; private domhandler; private renderer; header: string; draggable: boolean; resizable: boolean; ...
you can notice dragable: boolean;
not have @input() metadata above lead editor not showing intelisence component has such bindable property. example <p-dialog dragable...? ></p-dialog>
in both webstorm 2016 or visual studio code when creating angular 2.0 template , try use primeng components don't intelisence api component exposing.
question why *.d.ts files not contain metadata ? there workaround code hinting work without metadata in *.d.ts files ?
Comments
Post a Comment