Can I declare a static private function in typescript?

前端 未结 1 551
时光说笑
时光说笑 2021-01-16 11:08

I have the following code:

module Dialog {
    export class Modal {
        static createAccessModal(link: Link) {
            createModal(link);
        }
          


        
相关标签:
1条回答
  • 2021-01-16 11:39
    module Dialog {
        export module Modal {
            export function createAccessModal(link: Link) {
                createModal(link);
            }
            export function createAdminModal(link: Link) {
                link.Modal.MaxHeight = 600;
                link.Modal.Width = false;
                createModal(link);
            }
            function createModal(link: Link) {
    
                ...
            }
        }
    }
    
    0 讨论(0)
提交回复
热议问题